// 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; }
private void Start() { if (instance != null && instance != this) { Destroy(gameObject); } else { instance = this; } DontDestroyOnLoad(gameObject); }
private void Start() { gameManager = FindObjectOfType <GameManager>(); playerMovement = FindObjectOfType <PlayerMovement>(); generatorState = FindObjectOfType <LightIntensityAdjuster>(); }