コード例 #1
0
 private void KitInput()
 {
     if (Input.GetKeyDown(KeyCode.F))
     {
         characterReactions.UseKit();
     }
 }
コード例 #2
0
    private void OnTriggerEnter(Collider other)
    {
        AnimActivator anim;

        if (MyGetComponent(other.gameObject, out anim))
        {
            if (anim.triggerReactor)
            {
                anim.SetActiveForAll(true);
            }
        }
        if (other.tag.Equals("DeadZone"))
        {
            characterReactions.UseKit();
        }
    }