Inheritance: MonoBehaviour
コード例 #1
0
    // Use this for initialization
    void Start()
    {
        _gameMgr = GameObject.Find ("GameManager").GetComponent<GameMgr> ();
        w = 800;
        h = 480;
        _playerCtrl = GameObject.FindWithTag ("PLAYER").GetComponent<playerCtrl> ();

        wObj = 250;
        hObj = 250;
        speedHeight=250.0f;
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        _gameMgr = GameObject.Find ("GameManager").GetComponent<GameMgr> ();
        _animation = GetComponentInChildren<Animation> ();
        _animation.clip = anim.idle;
        _animation.Play ();
        _playerCtrl = GetComponent<playerCtrl> ();
        WaterFall1 = GameObject.Find ("/player/WaterFall1");
        WaterFall2 = GameObject.Find ("/player/WaterFall2");

        //StartCoroutine(this.PlaySfx(musicback,0.9f));
    }