Ejemplo n.º 1
0
    void Unhide()
    {
        hidingSpot.OnSantaExits();
        hidingSpot = null;
        hidden     = false;
        sr.enabled = true;

        Physics2D.IgnoreLayerCollision(LayerMask.NameToLayer("Player"), LayerMask.NameToLayer("Enemy"), false);
    }
Ejemplo n.º 2
0
    void Hide()
    {
        hidingSpot = hidingSpots[0];
        hidingSpot.OnSantaEnters();
        hidden     = true;
        sr.enabled = false;

        Physics2D.IgnoreLayerCollision(LayerMask.NameToLayer("Player"), LayerMask.NameToLayer("Enemy"), true);
    }
Ejemplo n.º 3
0
 public void UnsetHidingSpot(HidingSpotScript hidingSpot)
 {
     hidingSpots.Remove(hidingSpot);
 }
Ejemplo n.º 4
0
 // HIDING SPOT
 public void SetHidingSpot(HidingSpotScript hidingSpot)
 {
     hidingSpots.Add(hidingSpot);
 }