// Start is called before the first frame update void Start() { myWake = gameObject.GetComponentInChildren <ParticleSystem>(); myInWater = gameObject.GetComponent <InWater>(); playerController = gameObject.GetComponent <PlayerController>(); myNav = gameObject.GetComponent <NavMeshAgent>(); //rb = gameObject.GetComponent<Rigidbody>(); }
// public Transform camera; // Start is called before the first frame update void Start() { Cursor.lockState = CursorLockMode.Locked; selfInWater = GetComponent <InWater>(); rb = GetComponent <Rigidbody>(); }