Example #1
0
 void moveMover(int id)
 {
     mover.start = mover.transform.localPosition;
     mover.dir   = pageBtns[id].transform.localPosition - mover.transform.localPosition;
     mover.dir.y = mover.dir.z = 0;
     mover.GetComponent <CurveRunner>().increase = 0;
 }
    private void Awake()
    {
        agent = playerAgent.GetComponent <NavMeshAgent>();

        playerAgent.enabled = false;
        foreach (GameObject obj in uIElements)
        {
            obj.SetActive(false);
        }
        uIMessage.SetActive(false);
    }