Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        if (GameObject.Find("WashChain"))
        {
            m_washChainUI = GameObject.Find("WashChain").GetComponent <WashChain>();
        }

        if (GameObject.Find("WashGauge"))
        {
            m_washGaugeUI = GameObject.Find("WashGauge").GetComponent <Wash_Gauge>();
        }

        if (GameObject.Find("DirtyWashUI"))
        {
            m_dirtyWashUI = GameObject.Find("DirtyWashUI").GetComponent <DirtyWashUI>();
        }
        m_countStartTime = Time.deltaTime;
        isMyDityDestroy  = false;

        for (int i = 0; i < appearancePoints.Length; i++)
        {
            appearancePoints[i].GetComponent <DirtyApparancePosition>().MyCreater = this;
            appearancePoints[i].GetComponent <DirtyApparancePosition>().Player    = m_player;
        }
        if (0 < appearancePoints.Length)
        {
            appearancePoints[0].GetComponent <DirtyApparancePosition>().IsCreate = true;
            appearancePoints[0].GetComponent <DirtyApparancePosition>().Player   = m_player;
        }

#if DEBUG
        if (GetComponent <MeshRenderer>() != null)
        {
            Destroy(GetComponent <MeshRenderer>());
        }
#endif

        // リリースビルド時エディット用のメッシュがついてたらエラー!
#if DEBUG
        if (GetComponent <MeshRenderer>() != null)
        {
            //Debug.Log(this);
            Destroy(GetComponent <MeshRenderer>());
        }
#endif
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     washChain = GameObject.Find("WashChain").GetComponent <WashChain>();
     washgauge = GameObject.Find("WashGauge").GetComponent <Wash_Gauge>();
 }