Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     anim = GetComponentInParent <Animator>();
     nVa  = GetComponentInParent <NavMeshAgent>();
     nMo  = GetComponentInParent <NavMeshObstacle>();
     nMC  = GetComponentInParent <NavMeshControl>();
     // rayLenght = 10f;
     //   nMo.enabled = false;
 }
Exemplo n.º 2
0
	void Start ()
	{
		spawnedCoin = false;
		nMMC = GetComponent<NavMeshControl>();
	//	cC = GetComponent<CapsuleCollider>();
		anim = GetComponent<Animator>();
		nMA = GetComponent<NavMeshAgent>();
		DisablePhysics();
		
	}