Пример #1
0
 private void OnEnable()
 {
     if (grillManager == null)
     {
         grillManager = GameObject.FindObjectOfType <LearningGrillManager>();
     }
     LearningGrillManager.MissedIngredientEvent += UpdateUI;
 }
Пример #2
0
 private void Awake()
 {
     projectileHolder = this.transform;
     spawnTimer       = 0;
     TargetPoints.AddRange(FindObjectsOfType <TargetPoint>());
     meterFillAmount = meterMaxHeight / 3;
     LGM             = FindObjectOfType <LearningGrillManager>();
     sManager_Ref    = FindObjectOfType <SubtitleManager>();
 }
Пример #3
0
    void Start()
    {
        if (dadNPC == null)
        {
            dadNPC = GameObject.FindObjectOfType <DadScriptedEvent>().gameObject.GetComponent <NPC>();
        }

        LGM        = FindObjectOfType <LearningGrillManager>();
        aPS        = FindObjectOfType <ArchingProjectileSpawner>();
        detection  = GameObject.FindObjectOfType <DetectionCameraManager>();
        controller = GameObject.FindObjectOfType <ControllerSwitch>();
    }
Пример #4
0
 void Start()
 {
     APS      = FindObjectOfType <ArchingProjectileSpawner>();
     LGM      = FindObjectOfType <LearningGrillManager>();
     startPos = this.transform.position;
 }
Пример #5
0
 void Start()
 {
     bigfoot = FindObjectOfType <Bigfoot>().gameObject;
     LGM     = FindObjectOfType <LearningGrillManager>();
 }
Пример #6
0
 void Start()
 {
     updateObj     = GameObject.FindObjectOfType <UpdateObjective>();
     controlSwitch = GameObject.FindObjectOfType <ControllerSwitch>();
     LGM           = FindObjectOfType <LearningGrillManager>();
 }
Пример #7
0
 void Awake()
 {
     LGM         = FindObjectOfType <LearningGrillManager>();
     Splatplayer = GameObject.Find("Target").GetComponent <AudioSource>();
 }