// Use this for initialization void Start() { RT = GameObject.Find("RightTop"); LB = GameObject.Find("LeftBot"); Progress = this.gameObject.GetComponent <_2dxFX_EnergyBar> (); m_DC = GameObject.Find("Player").GetComponent <DreammancerCharacter> (); }
public void Start() { // _checkpoints = FindObjectsOfType <Checkpoint> ().OrderBy(t => t.transform.position.x).ToList(); _currentCheckpointIndex = _checkpoints.Count > 0 ? 0 : -1; Player = FindObjectOfType <DreammancerCharacter> (); //Camera = FindObjectOfType #if UNITY_EDITOR if (DebugSpawn != null) { DebugSpawn.SpawnPlayer(Player); } else if (_currentCheckpointIndex != -1) { _checkpoints[_currentCheckpointIndex].SpawnPlayer(Player); } #else if (_currentCheckpointIndex != -1) { _checkpoints[_currentCheckpointIndex].SpawnPlayer(Player); } #endif }
// Use this for initialization void Start() { m_Character = GetComponent <DreammancerCharacter>(); m_LightArea = GetComponent <CharacterLightArea>(); m_ColorList = new ColorList(colors); m_ColorList.Cursor = m_StartLightIndex; m_LightArea.SwitchLightColor(m_ColorList.SelectedColor); }
public void SpawnPlayer(DreammancerCharacter player) { player.RespawnAt(transform); }
// Use this for initialization void Start() { m_Character = GetComponent <DreammancerCharacter>(); }