public Launcher(byte launcherType, bool valid, byte seat, byte rateIndx) { m_Seat = seat; m_Type = launcherType; m_RateIndx = rateIndx; m_LaunchValid = valid; m_RateValid = true; m_Seat = seat; m_LauncherSetting = LauncherSetting.LauncherDataList[launcherType]; if (SceneRuntime.PlayerMgr.MyClientSeat == m_Seat) { m_bMyself = true; } else { m_bMyself = false; } m_LauncherInterval = m_LauncherSetting.Interval; m_LauncherTime = 0; for (byte i = 0; i < ConstValue.MAX_LAUNCHER_NUM; ++i) { m_EnergyPoolLogic[i] = new EnergyPool(); m_EnergyPoolLogic[i].InitEnergy(i); } m_bLauncherXPSkill = false; }
// Use this for initialization void Start () { boostParticles = transform.Find("Char02_Rig02_Hoverboard_Full_body_ctrl/Main_ctrl/Spin_Ctrl/Hoverboard_01/Boost").GetComponent<ParticleSystem>(); railParticles = transform.Find("Char02_Rig02_Hoverboard_Full_body_ctrl/Main_ctrl/Spin_Ctrl/Hoverboard_01/RailSparks").GetComponent<ParticleSystem>(); detectState = logicBoard.GetComponent<DetectState> (); movement = logicBoard.GetComponent<Movement> (); energy = logicBoard.GetComponent<EnergyPool> (); }
// Use this for initialization void Start() { energyScript = gameObject.GetComponent <EnergyPool>(); animator = gameObject.GetComponent <Movement>().m_characterAnimator; canBoost = true; }
// Use this for initialization void Start() { energyScript = gameObject.GetComponent<EnergyPool>(); animator = gameObject.GetComponent<Movement>().m_characterAnimator; canBoost = true; }
// Use this for initialization void Start() { boostParticles = transform.Find("Char02_Rig02_Hoverboard_Full_body_ctrl/Main_ctrl/Spin_Ctrl/Hoverboard_01/Boost").GetComponent<ParticleSystem>(); railParticles = transform.Find("Char02_Rig02_Hoverboard_Full_body_ctrl/Main_ctrl/Spin_Ctrl/Hoverboard_01/RailSparks").GetComponent<ParticleSystem>(); detectState = logicBoard.GetComponent<DetectState> (); movement = logicBoard.GetComponent<Movement> (); energy = logicBoard.GetComponent<EnergyPool> (); }
void Start() { movementScript = gameObject.GetComponent <Movement>(); energyScript = gameObject.GetComponent <EnergyPool>(); timeSeconds = timerScript.m_raceTime; position = transform.position; rotation = transform.rotation; movementScript = gameObject.GetComponent <Movement>(); checkpointCheck = false; energy = energyScript.m_energy; }
void Start() { movementScript = gameObject.GetComponent<Movement>(); energyScript = gameObject.GetComponent<EnergyPool>(); timeSeconds = timerScript.m_raceTime; position = transform.position; rotation = transform.rotation; movementScript = gameObject.GetComponent<Movement>(); checkpointCheck = false; energy = energyScript.m_energy; }
/// <summary>Runs one time when object is instanciated</summary> private void Start() { this.baseSwitch = GameObject.FindObjectOfType <BaseSwitcher>(); this.energyManagement = this.baseSwitch.GetEnergyPool(); }