Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     generatorState = FindObjectOfType <LightIntensityAdjuster>();
     setFrancineOff();
     npcAttackPower  = FindObjectOfType <NonCombatNpc>().attackPower;
     targetTransform = homePosition;
     walking         = true;
     canMove         = false;
     reachedHome     = false;
 }
Beispiel #2
0
 private void Start()
 {
     if (instance != null && instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
     DontDestroyOnLoad(gameObject);
 }
Beispiel #3
0
 private void Start()
 {
     gameManager    = FindObjectOfType <GameManager>();
     playerMovement = FindObjectOfType <PlayerMovement>();
     generatorState = FindObjectOfType <LightIntensityAdjuster>();
 }