void Start() { steveAlive = true; timer = 4f; EventManager.ActionAddHandler(EVENT.Reset, AReset); timer = 6f; }
private void Awake() { Instance = this; EventManager.ActionAddHandler(EVENT.AINodeSpawn, NodeAssign); EventManager.ActionAddHandler(EVENT.Increase, SpawnFish); }
private void Awake() { anim = GetComponentInChildren <Animator>(); rb = GetComponent <Rigidbody2D>(); EventManager.ActionAddHandler(EVENT.endGame, EndGame); EventManager.ActionAddHandler(EVENT.Reset, AReset); }
private void Awake() { Instance = this; EventManager.ActionAddHandler(EVENT.RoundBegin, StartGame); EventManager.ActionAddHandler(EVENT.RoundEnd, EndMatch); UIManager.Instance.HideCursor(true); Debug.Log("InGameManager awake"); }
private void Start() { EventManager.ActionAddHandler(EVENT.endGame, Endgame); EventManager.ActionAddHandler(EVENT.Reset, AReset); canspawn = true; for (int i = 0; i < AirPos.Capacity; i++) { Transform a = GetComponent <Transform>(); a.position = airoffset * (i + 1); AirPos.Add(a); } for (int i = 0; i < GroundPos.Capacity; i++) { Transform a = GetComponent <Transform>(); a.position = (groundoffset * (i + 1)) + new Vector3(0, -0.2f, 0); GroundPos.Add(a); } }
private void Start() { EventManager.ActionAddHandler(EVENT.Reset, AReset); }
public void Start() { InGameManager.Instance.FoodPlaceList.Add(gameObject); EventManager.ActionAddHandler(EVENT.Increase, IncreaseFood); originalPos = transform.GetChild(0).localPosition; }