示例#1
0
 protected override void Fire()
 {
     if (Time.fixedTime - fireTime > fireCD)
     {
         fireTime = Time.fixedTime;
         //Debug.Log(string.Format("TankNormal:{0} Fight!",name));
         Missile b = Missile.GetMissile();
         SendMessage("RenderFire");
         //b.Init(teamId,fireDamage,tc.toward*10 + tc.direction*tc.maxSpeed,transform.position);
         b.Init(teamId, fireDamage, (Quaternion.Euler(0, 0, (Random.value * 60) - 30)) * tc.toward * 10, transform.position);
     }
 }