Ejemplo n.º 1
0
 void Start()
 {
     steveAlive = true;
     timer      = 4f;
     EventManager.ActionAddHandler(EVENT.Reset, AReset);
     timer = 6f;
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        Instance = this;

        EventManager.ActionAddHandler(EVENT.AINodeSpawn, NodeAssign);
        EventManager.ActionAddHandler(EVENT.Increase, SpawnFish);
    }
Ejemplo n.º 3
0
 private void Awake()
 {
     anim = GetComponentInChildren <Animator>();
     rb   = GetComponent <Rigidbody2D>();
     EventManager.ActionAddHandler(EVENT.endGame, EndGame);
     EventManager.ActionAddHandler(EVENT.Reset, AReset);
 }
Ejemplo n.º 4
0
    private void Awake()
    {
        Instance = this;

        EventManager.ActionAddHandler(EVENT.RoundBegin, StartGame);
        EventManager.ActionAddHandler(EVENT.RoundEnd, EndMatch);

        UIManager.Instance.HideCursor(true);
        Debug.Log("InGameManager awake");
    }
Ejemplo n.º 5
0
    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);
        }
    }
Ejemplo n.º 6
0
 private void Start()
 {
     EventManager.ActionAddHandler(EVENT.Reset, AReset);
 }
Ejemplo n.º 7
0
 public void Start()
 {
     InGameManager.Instance.FoodPlaceList.Add(gameObject);
     EventManager.ActionAddHandler(EVENT.Increase, IncreaseFood);
     originalPos = transform.GetChild(0).localPosition;
 }