Пример #1
0
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     instance = this;
 }
Пример #2
0
 void Start()
 {
     manager = GetComponent <MinionManager>();
     cursor  = CommandCursor.instance;
 }
Пример #3
0
 protected override void InitializeOnAwake()
 {
     base.InitializeOnAwake();
     cursor = Instantiate(commandCursor).GetComponent <CommandCursor>();
 }