protected override void Awake() { base.Awake(); runWithPath = GetComponent <RunWithPath>(); attachCamera = GetComponent <AttachCamera>(); }
protected override void Awake() { base.Awake(); runWithPath = GetComponent<RunWithPath>(); attachCamera = GetComponent<AttachCamera>(); }
protected virtual void Awake() { attachCamera = GetComponent<AttachCamera>(); foreach (TrackPiece piece in trackPieces) { points.AddRange(piece.trackPoints()); } startPosition = transform.position; startRotation = transform.rotation; }
protected virtual void Awake() { attachCamera = GetComponent <AttachCamera>(); foreach (TrackPiece piece in trackPieces) { points.AddRange(piece.trackPoints()); } startPosition = transform.position; startRotation = transform.rotation; }
// Use this for initialization void Start() { myNetworkView = GetComponent<NetworkView>(); sceneCamera = GameObject.Find("Scene Camera"); enemyManager = GameObject.Find("EnemyManager"); attachCamera = GetComponent<AttachCamera>(); OpponentDestroy(); if(sceneCamera != null) sceneCamera.SetActive(false); if (myNetworkView.isMine) { transform.FindChild("Main Camera").parent = null; attachCamera.Initialize(); attachCamera.Attach(); } }