Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        m_showBuff      = 1;
        m_viewStatus    = GHOTS_VIEW_STATUS.INVISIBLE;
        m_pStateMachine = new CStateMachine <GhostMain>(this);
        m_animator      = this.GetComponent <Animator>();
        m_pStateMachine.SetCurrentState(CGhostState_Main.Instance());
        m_pStateMachine.SetGlobalStateState(CGhostState_Wait.Instance());
        m_nowDunmmyNum      = m_maxDunmmyNum;
        dGhost              = new GameObject[3];
        GhostScore          = new SGhostScore();
        GhostScore.hitCandy = 0;
        GhostScore.knockOut = 0;
        int count = 1;

        foreach (Transform i in this.transform)
        {
            if (i.name == ("ghostkodomo_" + count.ToString()))
            {
                dGhost[count - 1] = i.gameObject;
                count++;
            }
            if (i.name == "GhostMeshParticle")
            {
                m_movepatincle = i.GetComponent <ParticleSystem>();
            }
        }
    }
Esempio n. 2
0
 //[Header("ダッシュ中アルファ値")]
 //public float m_dashAlha;
 // Use this for initialization
 void Start()
 {
     //ゲットー
     // m_ControlType = gameObject.GetComponent<>();
     m_viewStatus = GHOTS_VIEW_STATUS.INVISIBLE;
     matPath      = this.transform.FindChild("polySurface21");
     meshrender   = matPath.GetComponent <MeshRenderer>();
     life         = lifeTime;
     GetComponent <CapsuleCollider>().enabled = false;
 }