void Awake() { player = GetComponent <MainPlayer> (); input = GetComponent <TeamAssignment> (); key = GetComponent <KeyframeScript> (); stats = GetComponent <PlayerStats> (); play = GetComponent <Playback> (); gameManager = GameObject.Find("[GameManager]").GetComponent <GameManager> (); // recUI.enabled = false; // playUI.enabled = false; // Set up Line Renderer lr = player.gameObject.GetComponentInChildren <LineRenderer> (); lr.enabled = false; lr.widthMultiplier = 0.2f; lr.material = mat; lr.receiveShadows = true; lr.alignment = LineAlignment.View; lr.textureMode = LineTextureMode.Tile; }
void Start() { player = GetComponent <MainPlayer> (); input = GetComponent <TeamAssignment> (); key = GetComponent <KeyframeScript> (); record = GetComponent <Recording> (); }
// Use this for initialization void Start() { gameManager = GameObject.Find("[GameManager]").GetComponent <GameManager> (); input = GetComponent <TeamAssignment> (); record = GetComponent <Recording> (); key = GetComponent <KeyframeScript> (); play = GetComponent <Playback> (); //Starts each player in the default position startIndexX = xCord; startIndexZ = zCord; ResetPlayerPos(); }