// Start is called before the first frame update void Start() { god = GameObject.Find("GOD").GetComponent <godScript>(); pS = GameObject.Find("Player").GetComponent <playerScript>(); anim = GetComponent <Animator>(); postProcessObject.profile.TryGetSettings(out vig); }
// Start is called before the first frame update void Start() { god = GameObject.Find("GOD").GetComponent <godScript>(); nav = GetComponent <NavMeshAgent>(); changePosition(); exit = GameObject.Find("Exit"); aud = GetComponent <AudioSource>(); pS = GameObject.Find("Player").GetComponent <playerScript>(); buddyPlayer = GameObject.Find("Player"); myLine = GetComponent <LineRenderer>(); god.NPCcount++; }
// Start is called before the first frame update void Start() { anim = GetComponent <Animator>(); myRideAnchor = transform.Find("Model Parent/RideAnchor"); GOD = GameObject.Find("GOD").GetComponent <godScript>(); cC = GameObject.Find("Player").GetComponent <characterController>(); nav = GetComponent <NavMeshAgent>(); hFS = GetComponent <horseFunctionsScript>(); if (hFS == null) { hFS = new horseFunctionsScript(); } changePosition(); }
// Start is called before the first frame update void Start() { foreach (GameObject gimmick in GameObject.FindGameObjectsWithTag("gimmick")) { initialConditions.Add(gimmick.GetComponent <StateStorage>().state); states.Add(gimmick.GetComponent <StateStorage>().state); interactibles.Add(gimmick); } foreach (GameObject gimmick in GameObject.FindGameObjectsWithTag("gimmickNonWall")) { initialConditions.Add(gimmick.GetComponent <StateStorage>().state); states.Add(gimmick.GetComponent <StateStorage>().state); interactibles.Add(gimmick); } updatesCount = 0; cctrl = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterControl>(); gs = GameObject.FindGameObjectWithTag("god").GetComponent <godScript>(); }
private void Start() { god = this.GetComponent <godScript>(); anim = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterControl>().animator; justChanged = false; }