Esempio n. 1
0
        private void Awake()
        {
            Ins = this;

            var sel =
                from Transform trans in RespawnerContainer
                select trans.GetComponent <Respawner>();

            _Respawners = sel.ToArray();
            foreach (var respawner in _Respawners)
            {
                respawner.Init(() => Difficulty);
                respawner.enabled = false;
            }
        }
Esempio n. 2
0
 private void OnDestroy()
 {
     Ins = null;
 }