// Use this for initialization void Start() { if (GameObject.FindGameObjectWithTag("Ball") != null) { lookatBall = GameObject.FindGameObjectWithTag("Ball").transform; } cMM = transform.GetComponent <CameraModeMedium>(); }
private void RPC_GetPlayerComponents() { BH = ChildPlayer.GetComponent <BallHandling>(); BS = ChildPlayer.GetComponent <BallSteal>(); HBS = ChildPlayer.GetComponent <hoverBoardScript>(); PC = ChildPlayer.GetComponent <PlayerColor>(); ChildPlayer.transform.SetParent(this.transform); cRotScript = ChildPlayer.GetComponentInChildren <CameraRotation>(); cmm = ChildPlayer.GetComponentInChildren <CameraModeMedium>(); }