Exemplo n.º 1
0
 public override void Enter(CharControlMotor player)
 {
     player.GroundExit();
     player.EnableCollision(false);
     player.attacking           = false;
     player.Death               = true;
     player.disableSkinRotation = true;
     player.disableCameraFollow = true;
     player.velocity            = Vector3.zero;
     player.velocity.y          = player.stats.diePushUp;
     player.PlayAudio(player.audios.death);
 }
Exemplo n.º 2
0
    private Transform Player; //Read-only



    public override void Enter(CharControlMotor player)
    {
        player.EnableCollision(false);
    }
Exemplo n.º 3
0
 public override void Exit(CharControlMotor player)
 {
     player.EnableCollision(true);
 }