// Use this for initialization void Start() { objectMesh = GetComponent<MeshRenderer>(); // Disable the mesh renderer component objectMesh.enabled = false; // Get all the cube pickups in the level getPickUps(); // Reference the playerSphere getPlayer(); // Reference the hudManager mainHUD = FindObjectOfType<hudManager>(); // Get the audio source component getClockAudioSource(); // Set clock audio clip setClockAudioClip(); clockSoundManager = FindObjectOfType<ClockSoundManager>(); playerScore = 0; targetScore = setTargetScore; defaultClockLength = clockLength; print(targetScore); }
void Start() { if (isLocalPlayer) { hudmanager = GameObject.Find("Canvas").GetComponent <canvasManager> ().hud; } }
// Start is called before the first frame update void Start() { isInControl = !isMenuScreen; fadeOut(6f); hudManager = GameObject.Find("MainUI").GetComponent <hudManager>(); fadedTime = 1.5f; fadeinTime = 0.6f; exit = GameObject.Find("Exit"); StartCoroutine(LateStart()); }
void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }
// Start is called before the first frame update void Start() { hudManager = GameObject.Find("MainUI").GetComponent <hudManager>(); gm = GameObject.Find("GameManager").GetComponent <GameManager>(); }
public hudManager() { Singleton = this; }