Ejemplo n.º 1
0
 public void OnEndAnimationEffectEnd()
 {
     if (playingPlaceable.Player.isLocalPlayer)
     {
         MoveLogic(new List <Vector3>()
         {
             playingPlaceable.GetPosition() - new Vector3(0, 1, 0)
         });
         GameManager.instance.State = States.Move;
     }
 }
Ejemplo n.º 2
0
    // <summary>
    /// Unused function to apply function to all visible characters
    /// </summary>
    /// <param name="shooter"></param>
    public void Shootable(LivingPlaceable shooter)
    {
        Vector3 shootPos = shooter.GetPosition() + shooter.ShootPosition;

        foreach (GameObject iterCharac1 in player1.GetComponent <Player>().Characters)
        {
            LivingPlaceable charac1 = iterCharac1.GetComponent <LivingPlaceable>();

            if (shooter.CanHit(charac1).Count > 0)
            {
                //typically, changing color
            }
        }

        foreach (GameObject iterCharac2 in player2.GetComponent <Player>().Characters)
        {
            LivingPlaceable charac2 = iterCharac2.GetComponent <LivingPlaceable>();

            if (shooter.CanHit(charac2).Count > 0)
            {
                //typically, changing color
            }
        }
    }