Exemplo n.º 1
0
    float GetAngleToTarget()
    {
        if (!mapLogic.IsCharacterTotallyFightable(target.character))
        {
            return(0);
        }

        return(MathfPlus.GetDeltaAngle(machineGun.transform.forward, machineGun.transform.position, target.character.transform.position));
    }