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(); }
private void Awake() { _instance = this; }
void Awake() { instance = this; gameObject.SetActive(false); }
// Start is called before the first frame update void Start() { spawnController = (SpawnController)FindObjectOfType(typeof(SpawnController)); shipManager = (SpaceShipManager)FindObjectOfType(typeof(SpaceShipManager)); }