Ejemplo n.º 1
0
    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;
    }
Ejemplo n.º 2
0
	// 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> ();
	}
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        energyScript = gameObject.GetComponent <EnergyPool>();

        animator = gameObject.GetComponent <Movement>().m_characterAnimator;

        canBoost = true;
    }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        energyScript = gameObject.GetComponent<EnergyPool>();

        animator = gameObject.GetComponent<Movement>().m_characterAnimator;

        canBoost = true;
    }
Ejemplo n.º 5
0
 // 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> ();
 }
Ejemplo n.º 6
0
    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;
    }
Ejemplo n.º 7
0
    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;
    }
Ejemplo n.º 8
0
 /// <summary>Runs one time when object is instanciated</summary>
 private void Start()
 {
     this.baseSwitch       = GameObject.FindObjectOfType <BaseSwitcher>();
     this.energyManagement = this.baseSwitch.GetEnergyPool();
 }