24 lines
459 B
C#
24 lines
459 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
using System;
|
|
using System.Collections;
|
|
|
|
[InitializeOnLoad]
|
|
public class LaunchConifersInstaller
|
|
{
|
|
static LaunchConifersInstaller()
|
|
{
|
|
EditorApplication.update += Update;
|
|
}
|
|
|
|
|
|
static void Update()
|
|
{
|
|
EditorApplication.update -= Update;
|
|
|
|
if( !EditorApplication.isPlayingOrWillChangePlaymode )
|
|
{
|
|
ConifersInstaller.Init();
|
|
}
|
|
}
|
|
} |