コード例 #1
0
ファイル: E_PistolA.cs プロジェクト: Vaskrol/Break-In
 void Start()
 {
     RotationBehaviour = new E_FullRotation();
     Level             = 1;
     Cooldown          = 2f;
     Damage            = 5f;
     SetTrailColor(Color.red);
 }
コード例 #2
0
        public override bool Equals(object obj)
        {
            IRotationBehaviour behaviour = obj as IRotationBehaviour;

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

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

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