Ejemplo n.º 1
0
 public void OnEnable()
 {
     parent       = GetComponent <LittleGuy>();
     PlayerNumber = parent.PlayerNumber;
     EventManager.StartListening("Ability1_" + PlayerNumber + "Pressed", Activate);
     EventManager.StartListening("Ability2_" + PlayerNumber + "Pressed", Reset);
 }
Ejemplo n.º 2
0
    public void OnTriggerExit2D(Collider2D collision)
    {
        LittleGuy collidedEntity = null;

        if (collidedEntity = collision.gameObject.GetComponent <LittleGuy>())
        {
            teamsCapturing.Remove(collidedEntity.CurrentTeam);
        }
    }