示例#1
0
 //プレーヤーの飛び
 public void interact(Vector3 hitPos)
 {
     follower.GetComponent <Rigidbody>().isKinematic = true;
     follower.gameObject.GetComponent <Animator>().SetTrigger(StaticStrings.Jump);
     follower.JumpToPoint(land, height, speed);
     if (spider != null)
     {
         float rnd = Random.Range(2f, 4f);
         Invoke("moveSpider", rnd);
     }
 }
 public void interact(Vector3 hitPos)
 {
     //回る
     if (!active)
     {
         active = true;
         if (rotable)
         {
             transform.rotation = new Quaternion(180, 0, 0, 0);
         }
         EffectDirector.instance.EffectAndPopup(hitPos, "AURABUBBLE", 30);
     }
     //プレーヤーを飛ぶ
     follower.GetComponent <Rigidbody>().isKinematic = true;
     follower.gameObject.GetComponent <Animator>().SetTrigger(StaticStrings.Jump);
     follower.JumpToPoint(land, height, speed);
     if (lastPlatform)
     {
         transform.GetChild(0).gameObject.SetActive(true);
     }
 }