Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     // Cities = GameObject.FindGameObjectsWithTag("City");
     // Missiles = GameObject.FindGameObjectsWithTag("PM");
     missileCommnandScript = MissileCommand.GetComponent <MissileCommand>();
     CityBonusText         = CityBonus.GetComponent <TextMeshProUGUI>();
     MissileBonusText      = MissileBonus.GetComponent <TextMeshProUGUI>();
     Canvas = transform.GetChild(0).gameObject;
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     MissileCommand        = GameObject.FindGameObjectWithTag("MainCamera");
     missileCommnandScript = MissileCommand.GetComponent <MissileCommand>();
     Velocity                = missileCommnandScript.EnemyVelocity;
     Explosion               = missileCommnandScript.Explosion;
     lineRenderer            = GetComponent <LineRenderer>();
     lineRenderer.startWidth = lineRenderer.endWidth = 0.05f;
     Collider                = GetComponent <BoxCollider2D>();
     Rigidbody               = GetComponent <Rigidbody2D>();
 }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     missileCommnandScript = MissileCommand.GetComponent <MissileCommand>();
     Z = missileCommnandScript.Z;
     //ExplosionScaleGrow = missileCommnandScript.ExplosionScaleGrow;
     Explosion               = missileCommnandScript.Explosion;
     Velocity                = missileCommnandScript.PlayerVelocity;
     ExpVelocity             = missileCommnandScript.ExplosionVelocity;
     lineRenderer            = gameObject.GetComponent <LineRenderer>();
     lineRenderer.enabled    = false;
     lineRenderer.startWidth = lineRenderer.endWidth = 0.05f;
 }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     missileCommnandScript = MissileCommand.GetComponent <MissileCommand>();
     playerMissileScript   = playerMissile.GetComponent <PlayerMissile>();
     NewLevel();
 }