Beispiel #1
0
 void Start()
 {
     RotationBehaviour = new E_FullRotation();
     Level             = 1;
     Cooldown          = 2f;
     Damage            = 5f;
     SetTrailColor(Color.red);
 }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            IRotationBehaviour behaviour = obj as IRotationBehaviour;

            if (behaviour == null)
            {
                return(false);
            }

            return(Equals(behaviour));
        }
Beispiel #3
0
    void Start()
    {
        RotationBehaviour = new NoRotation();
        Level             = 1;
        Cooldown          = 0.5f;
        Damage            = 25f;

        _hitExplosionPrefab = (GameObject)
                              Resources.Load(
            "Prefabs/ParticleSystems/BulletExplosionA",
            typeof(GameObject));
    }
Beispiel #4
0
 public bool Equals(IRotationBehaviour behaviour)
 {
     return(behaviour.Id == Id);
 }
Beispiel #5
0
 protected RotationBehaviourBaseViewModel(IRotationBehaviour model)
 {
     Model = model;
 }