protected virtual void Awake()
    {
        transform = GetComponent <Transform>();

        int count      = bulletCount - 1;
        int queueCount = count / countIn1Queue;
        int shoots     = count - queueCount;

        reloadingEntity = new ReloadingEntity <InteractiveData>(x =>
                                                                shoots * x.DamageTime + timeBetweenQueues * queueCount + reloading);
    }
Exemplo n.º 2
0
    private void Awake()
    {
        reloadingEntity = new ReloadingEntity(reloading);

        lineToHook   = GetComponent <LineRenderer>();
        transform    = GetComponent <Transform>();
        movingObject = GetComponent <MovingObject>();
        ySpeed       = movingObject.Speed.y;

        hookTransform = hook.GetComponent <Transform>();
        hookRigidBody = hook.GetComponent <Rigidbody2D>();
        hookCollider  = hook.GetComponent <Collider2D>();
        hookComponent = hook.GetComponent <Hook>();
    }
Exemplo n.º 3
0
 private void Awake()
 {
     waveReloadingEntity = new ReloadingEntity <EquipData>(x => x.WaveReloadingTime);
 }
Exemplo n.º 4
0
 private void Awake()
 {
     reloadingEntity = new ReloadingEntity <EquipData>(x => x.ReloadingDestroyTime);
 }
Exemplo n.º 5
0
 private void Awake()
 {
     shieldReloadingEntity = new ReloadingEntity <EquipData>(x => x.ShieldReloadingTime);
 }