Exemplo n.º 1
0
    // 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>();
    }
Exemplo n.º 2
0
 //  public Transform camera;
 // Start is called before the first frame update
 void Start()
 {
     Cursor.lockState = CursorLockMode.Locked;
     selfInWater      = GetComponent <InWater>();
     rb = GetComponent <Rigidbody>();
 }