Example #1
0
 public void WasHitted(Touch3D touch)
 {
     DebugLogger.WriteInfo("GameLogo.WasHitted touch.TouchLastFrame = {0}",
                           touch.TouchLastFrame.ToString());
     if (touch.TouchLastFrame)
     {
         return;
     }
     AnimEnded();
     StopCoroutine(_animCoroutine);
 }
Example #2
0
    public void WasHitted(Touch3D touch)
    {
        if (_player == null)
        {
            return;
        }

        if (touch.TouchLastFrame)
        {
            return;
        }
        var pos = touch.Hit2D.point;
        var dir = pos - (Vector2)__Transform.position;

        _player.Movement(dir);
    }