Пример #1
0
 void Awake()
 {
     if (_instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         _instance = this;
     }
     grid           = GetComponent <Grid>();
     requestManager = GetComponent <PathRequestManager>();
 }
Пример #2
0
 void Awake()
 {
     instance      = this;
     pathFinding   = GetComponent <PathFinding>();
     pathFindingV2 = GetComponent <PathFindingV2>();
 }