Esempio n. 1
0
 public static void Run(Task task)
 {
     if (TaskManager.GetInstance() != null)
     {
         TaskManager.GetInstance().runner.addTask(task);
     }
 }
Esempio n. 2
0
 void Start()
 {
     if (!isLined_)
     {
         TaskManager.GetInstance().partRunner = this;
         isLined_ = true;
     }
 }
Esempio n. 3
0
 protected void OnDestroy()
 {
     if (isLined_)
     {
         TaskManager.GetInstance().partRunner = null;
         isLined_ = false;
     }
 }
Esempio n. 4
0
 protected void Awake()
 {
     if (TaskManager.GetInstance() != null)
     {
         TaskManager.GetInstance().partRunner = this;
         isLined_ = true;
     }
 }
Esempio n. 5
0
 public static void Run(Task task)
 {
     if (TaskManager.GetInstance() == null)
     {
         GameObject obj = new GameObject();
         obj.name  = "TaskManager";
         instance_ = obj.AddComponent <TaskManager> ();
     }
     TaskManager.GetInstance().runner.addTask(task);
 }