void OnEnable() { nPC = GetComponent <AllNPC>(); nPC.agent.isStopped = true; nPC.animator.SetBool("Walk", false); nPC.animator.SetTrigger("Meow"); InvokeRepeating("UpdatePlayerPosition", 0, 1f); }
private void OnEnable() { nPC = GetComponent <AllNPC>(); napTime = nPC.napTime; nPC.agent.isStopped = true; wakingUp = false; nPC.animator.SetTrigger("Tired"); }
private void OnEnable() { nPC = GetComponent <AllNPC>(); // Disabling auto-braking allows for continuous movement // between points (ie, the agent doesn't slow down as it // approaches a destination point). Invoke("GetMoving", 0.01f); }
public void OnEnable() { nPC = GetComponent <AllNPC>(); Invoke("Eat", 0.01f); }
private void OnEnable() { nPC = GetComponent <AllNPC>(); }
public void OnEnable() { nPC = GetComponent <AllNPC>(); nPC.agent.speed = 2; }
public void OnEnable() { nPC = GetComponent <AllNPC>(); Invoke("GetMoving", .1f); }
public void OnEnable() { nPC = GetComponent <AllNPC>(); //nPC.agent.speed = 5f; InvokeRepeating("UpdateFoodPosition", 0, .5f); }
void Start() { nPC = GetComponent <AllNPC>(); }