コード例 #1
0
 protected override void SetAnimation()
 {
     animations = new ProjectileAnimation[] {
         new ProjectileAnimations.SpiralUpwards(0.5f, 10.0f),
         new ProjectileAnimations.HomeAtClosestTarget(Mathf.Infinity, 50.0f),
     };
 }
コード例 #2
0
 void Awake()
 {
     m_damageDealer        = GetComponent <DamageDealer>();
     m_projectileAnimation = GetComponent <ProjectileAnimation>();
     m_speed    = Mathf.Max(m_speed, 0.01f);
     m_lifeTime = m_attackRange / m_speed;
 }
コード例 #3
0
 protected override void SetAnimation()
 {
     animations = new ProjectileAnimation[] {
         new ProjectileAnimations.ImpulseFwdAtStart(0.5f, 20.0f),
         new ProjectileAnimations.HomeAtClosestTarget(Mathf.Infinity, 50.0f),
     };
 }
コード例 #4
0
 protected override void SetAnimation()
 {
     animations = new ProjectileAnimation[] {
         new ProjectileAnimations.ImpulseFwdAtStart(1.0f, 20.0f),
     };
 }