Exemplo n.º 1
0
 private void Awake()
 {
     _clickActionHandler = GetComponent <ClickToAct>();
     _HurtParticlePrefab = Resources.Load <GameObject>("ExtinguishParticle");
     _maxClicksToDestroy = Random.Range(2, 4);
     _flyOffTo           = flyOffToPositions[Random.Range(0, flyOffToPositions.Length - 1)];
 }
Exemplo n.º 2
0
 void Awake()
 {
     _buildingSprite           = GetComponent <SpriteRenderer>();
     _clickActionHandler       = GetComponent <ClickToAct>();
     _crystalTarget            = new Vector3(11, 6.5f);
     _crystalPosition          = crystalIcon.transform.position;
     _fireParticlePrefab       = Resources.Load <GameObject>("FireParticle");
     _ExtinguishParticlePrefab = Resources.Load <GameObject>("ExtinguishParticle");
     _ExplosionParticlePrefab  = Resources.Load <GameObject>("ExplosionParticle");
 }