Ejemplo n.º 1
0
 void Awake()
 {
     anim = GetComponent <Animator> ();
     partialDestruction             = GetComponent <PartialDestruction> ();
     dandelionPottedSpawnRateTemp   = Random.Range(dandelionPottedSpawnRateMin, dandelionPottedSpawnRateMax);
     dandelionPottedSpawnAttackTime = Time.time + dandelionPottedSpawnOffSet + dandelionPottedSpawnRateTemp;
 }
Ejemplo n.º 2
0
 void Awake()
 {
     anim = GetComponent <Animator> ();
     partialDestruction = GetComponent <PartialDestruction> ();
     winkRateTemp       = Random.Range(winkRateMin, winkRateMax);
     winkAttackTime     = Time.time + winkOffSet + winkRateTemp;
 }
Ejemplo n.º 3
0
 void Awake()
 {
     anim               = GetComponent <Animator> ();
     monsterBasic       = GetComponent <Monster_Basic> ();
     partialDestruction = GetComponent <PartialDestruction> ();
     attackTime         = Time.time + offSet + fireRateTemp;
 }
Ejemplo n.º 4
0
 void Awake()
 {
     anim               = GetComponent <Animator> ();
     monsterBasic       = GetComponent <Monster_Basic> ();
     partialDestruction = GetComponent <PartialDestruction> ();
     CameraLerpPosition.cameraLerpPosition.failedFunction = failedFunction;
     StartCoroutine(SpawnMonsters());
     StartCoroutine(HealCoroutine(healDelay));
 }
Ejemplo n.º 5
0
 void Awake()
 {
     rangeFireRateTemp = rangeFireRate;
     attackTime        = Time.time + rangeFireRateTemp;
     anim               = GetComponent <Animator> ();
     monsterBasic       = GetComponent <Monster_Basic> ();
     barricade          = Castle.castle.transform.GetComponent <Barricade> ();
     partialDestruction = GetComponent <PartialDestruction> ();
 }
Ejemplo n.º 6
0
 void Awake()
 {
     monsterBasic       = GetComponent <Monster_Basic> ();
     partialDestruction = GetComponent <PartialDestruction> ();
     CameraLerpPosition.cameraLerpPosition.failedFunction = failedFunction;
     spawnRateTemp = Random.Range(spawnRateMin, spawnRateMax);
     anim          = GetComponent <Animator> ();
     attackTime    = Time.time + offSet + spawnRateTemp;
     ground        = new Vector3(2.43f, 2.13f, 0f);
     sky           = new Vector3(2.43f, 3.46f, 0f);
     StartCoroutine(Shoot());
 }
Ejemplo n.º 7
0
 public void Awake()
 {
     partialDestruction = GetComponent <PartialDestruction> ();
     partialDestruction.ActivateButton(ref activated, 5f);
 }