void Start() { audioManager = AudioManager.instance; player = Player.instance; controller = GameController.instance; pooler = PoolerManager.instance; player.ammo[ammoType] = initialAmmo; }
void Start() { audioManager = AudioManager.instance; player = Player.instance; controller = GameController.instance; pooler = PoolerManager.instance; // Pooler Manager player.ammo[ammoType] = initialAmmo; DisplayStats.UpdateRocketAmmo(initialAmmo); }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
void Start() { //@TDSH // foreach (Transform p in pArray) // { // Debug.Log(transform.name+"===="+p.name+"===="+p.localPosition); // } poolerManager = pooler.GetComponent <PoolerManager>(); EventNotificationCenter.GetInstance().AddListener(BroadEvent.GAMERESET_EVENT, Reset); //设置对象池存放对象 }
private void Awake() { Instance = this; }
// Use this for initialization void Start() { pooler = PoolerManager.instance; StartCoroutine(SpawnItems(spawnRate)); }