Beispiel #1
0
 // 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);
 }
Beispiel #2
0
 // 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++;
 }
Beispiel #3
0
 // 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>();
 }
Beispiel #5
0
 private void Start()
 {
     god         = this.GetComponent <godScript>();
     anim        = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterControl>().animator;
     justChanged = false;
 }