void Awake() { gm = Camera.main.GetComponent<GameManagement>(); laneChanging = false; laneHeight = gm.GetLaneHeight(); MoveOffset(); }
// Use this for initialization void Start() { //sheild animation particle system shieldAnim = GetComponent<ParticleSystem>(); //Source audio audioSource = GetComponent<AudioSource>(); //Source the Game Management mgmt = Camera.main.GetComponent<GameManagement>(); //storing laneheight for future use laneHeight = mgmt.GetLaneHeight(); laneChanging = false; laneSplit = false; }
// Use this for initialization void Start() { //Source the Game Management mgmt = Camera.main.GetComponent<GameManagement>(); //storing laneheight for future use laneHeight = mgmt.GetLaneHeight(); laneChanging = false; //Source the weapon? or is that part of the prefab? }