Ejemplo n.º 1
0
    public void AlignWithTarget(IShooter target, Action OnAlignComplete)
    {
        Vector3 alignTo = new Vector3(target.GetPosition().x, GetPosition().y, GetPosition().z);

        StartAligning(alignTo, () => {
            OnAlignComplete();
            playerState = State.Idle;
        });
    }