// // Start // void Start() { serverScript = GetComponent<HookHeadServerBehaviour>(); }
// // Start // void Start() { agent = GetComponent<NavMeshAgent>(); hookScript = hookHead.GetComponent<HookHeadServerBehaviour>(); clientScript = GetComponent<PlayerClientBehaviour>(); // Try to find the game manager script. If we can't find one, null will flag that there are no game rules // to follow. gameTypeScript = GameObject.FindGameObjectWithTag( gameControllerTag ).GetComponent<GameTypeManager>(); }