示例#1
0
 // Use this for initialization
 private void Start()
 {
    // _rb = GetComponent<Rigidbody>();
     Form = ShamanSpiritualForm.Eagle;
     _rb = GetComponent<Rigidbody>();
     Form = ShamanSpiritualForm.Egg;
 }
示例#2
0
 public void MoveSpiritualForm(ShamanSpiritualForm sf)
 {
     if (sf == ShamanSpiritualForm.Egg)
     {
         var horizontal = Input.GetAxis("Horizontal");
         _rb.AddTorque(new Vector3(0, 0, horizontal*_moveSpeed), ForceMode.Force);
     }
     else if (sf == ShamanSpiritualForm.Horse)
     {
     }
     else if (sf == ShamanSpiritualForm.Eagle)
     {
     }
     else if (sf == ShamanSpiritualForm.Shark)
     {
     }
     else if (sf == ShamanSpiritualForm.Phoenix)
     {
     }
 }