Пример #1
0
    public void Init()
    {
        androidManager   = FindObjectOfType <AndroidManager>();
        spaceShipManager = FindObjectOfType <SpaceShipManager>();
        scientistManager = FindObjectOfType <ScientistManager>();
        bulletManager    = FindObjectOfType <BulletManager>();

        if (!AndroidManager || !SpaceShipManager || !ScientistManager)
        {
            Debug.LogError("Not Found UniqueActor Managers");
            return;
        }

        androidManager.Init();
        spaceShipManager.Init();
        scientistManager.Init();
        bulletManager.Init();
    }
Пример #2
0
 private void Awake()
 {
     _instance = this;
 }
 void Awake()
 {
     instance = this;
     gameObject.SetActive(false);
 }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     spawnController = (SpawnController)FindObjectOfType(typeof(SpawnController));
     shipManager     = (SpaceShipManager)FindObjectOfType(typeof(SpaceShipManager));
 }