// Use this for initialization void Start() { shrink = GetComponent <ShrinkPlayer> (); originalColor = new Vector4(1f, 1f, 1f, 1f); nextColor = new Vector4(1f, 1f, 1f, 1f); colorOfDeath = new Vector4(208f / 255f, 116f / 255f, 240f / 255f, 0.5f); //nextColor = new V }
// Use this for initialization void Start() { shrink = player.GetComponent <ShrinkPlayer> (); FindPlayer(); SaveCheckpoint(); GameObject[] puzzlePieceFitters = GameObject.FindGameObjectsWithTag("puzzlepieceFit"); numOfpuzzlePiece = puzzlePieceFitters.Length; }
void Awake() { voidPosition = new Vector3(148f, -4.6f, 0); GameObject temp = GameObject.FindGameObjectWithTag("HintBox"); if (ErrorWindow <DebugPlayer> .CanBeAssigned(temp, this, "HintBox")) { hintbox = temp.GetComponent <HintBoxController> (); } shrink = GameObject.FindGameObjectWithTag("Player").GetComponent <ShrinkPlayer> (); }
void Start() { GameObject obj = GameObject.FindGameObjectWithTag("Player"); if (obj != null) { playerSoulPercentage = obj.GetComponent <ShrinkPlayer> (); } else if (obj == null) { Debug.Log("CANNOT FIND PLAYER"); } }
// Use this for initialization void Start() { GameObject directorObj = GameObject.FindGameObjectWithTag("Director"); GameObject soundDirObj = GameObject.FindGameObjectWithTag("SoundDirector"); if (directorObj != null) { director = directorObj.GetComponent <Director> (); } else if (directorObj == null) { Debug.Log("Cannot find the Director!"); } if (soundDirObj != null) { soundDirector = soundDirObj.GetComponent <SoundDirector> (); } else { Debug.Log("Cannot find the SoundDirector!"); } GameObject obj = GameObject.FindGameObjectWithTag("Player"); if (obj != null) { player = obj.GetComponent <PlayerPositioning>(); shrink = obj.GetComponent <ShrinkPlayer>(); } else if (obj == null) { Debug.Log("cannot find PlayerControls!"); } soulmeter = GameObject.FindGameObjectWithTag("Soulmeter"); }