void Start() { varManager = SCR_VarManager.Instance; objectRefs = SCR_ObjectReferenceManager.Instance; objectRefs.player = gameObject; varManager.currentHealth = variables.maxHealth; }
private void Start() { varManager = SCR_VarManager.Instance; objectRefs = SCR_ObjectReferenceManager.Instance; // Disable menu controls controls.Menu.Disable(); }
void Start() { cGroup = GetComponent <CanvasGroup>(); objectRefs = SCR_ObjectReferenceManager.Instance; varManager = SCR_VarManager.Instance; eventSystem = EventSystem.current; objectRefs.gameOverMenu = cGroup; }
void Start() { varManager = SCR_VarManager.Instance; objectRefs = SCR_ObjectReferenceManager.Instance; currentSceneIndex = SceneManager.GetActiveScene().buildIndex; // make sure debug menu is closed when at beginning of play CloseDebugMenu(); }
private void Awake() { if (Instance == null) { Instance = this; transform.parent = null; } else { Destroy(gameObject); } }
void Start() { objectRefs = SCR_ObjectReferenceManager.Instance; objectRefs.targetIcon = this; lockIconSprite = lockIcon.GetComponent <SpriteRenderer>(); transform.SetParent(null); // Make icon start invisible transform.localScale = Vector3.zero; lockIcon.localScale = Vector3.zero; }
private void Start() { varManager = SCR_VarManager.Instance; objectRefs = SCR_ObjectReferenceManager.Instance; }