コード例 #1
0
ファイル: Dying.cs プロジェクト: abelsiqueira/medrash-assets
 public override void Enter(Entity context)
 {
     context.SetSpeed(0.0f);
     context.MakeInvunerable();
     context.SetDyingAnimation();
     if (context.blood)
         GameObject.Instantiate(context.blood, context.transform.position + Vector3.up*1.5f, context.transform.rotation);
 }
コード例 #2
0
 public override void Enter(Entity context)
 {
     context.SetSpeed(0.0f);
     context.SetDyingAnimation();
 }