// Use this for initialization void Start() { target = GameObject.FindGameObjectWithTag("Player").transform; movement = GetComponent <XYMovement>(); shootingScript = GetComponent <ShootingScript>(); fsm.pushState(WasteTime); }
// Use this for initialization void Start() { score = 0; choppaActive = false; isRecording = false; isPlayingBack = false; loopPlayback = false; flatty = GameObject.Find("FlatbedTruck"); choppa = GameObject.Find("Choppa"); flattyController = flatty.GetComponent <motorMovement>(); choppaController = choppa.GetComponent <XYMovement>(); lookingGlass = GameObject.Find("Main Camera").GetComponent <GameCamera>(); lookingGlass.SetTarget(flatty.transform); }
// Use this for initialization void Start() { movement = GetComponent <XYMovement>(); target = GameObject.FindGameObjectWithTag("Player").transform; }
// Use this for initialization void Start() { movement = GetComponent <XYMovement>(); shootingScript = GetComponent <ShootingScript>(); }
// Use this for initialization void Start() { movement = GetComponent <XYMovement>(); fsm.pushState(WasteTime); }