// 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; }
// 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>(); }
// 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; }
// Start is called before the first frame update void Start() { missileCommnandScript = MissileCommand.GetComponent <MissileCommand>(); playerMissileScript = playerMissile.GetComponent <PlayerMissile>(); NewLevel(); }