コード例 #1
0
    private Animation rocket_motion;                    // (rocket)motion--.

    // ================================================================ //
    // MonoBehaviour으로부터의 상속.

    void    Start()
    {
        this.last.ignite      = 0;
        this.last.block       = 0;
        this.last.score       = 0;
        this.last.total_socre = 0;
        this.last.islands     = 0;
        this.last.island_size = 0;

        this.best = this.last;

        this.score_disp    = GameObject.FindGameObjectWithTag("Score Disp").GetComponent <ScoreDisp>();
        this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>();
        this.unito_control = GameObject.FindGameObjectWithTag("Player").GetComponent <unitoControl>();

        this.rocket_motion = GameObject.Find("rocket_model").gameObject.GetComponentInChildren <Animation>();                   //motion
    }
コード例 #2
0
ファイル: ScoreCounter.cs プロジェクト: smalab/JumpGame
    // ================================================================ //
    // MonoBehaviour からの継承.
    void Start()
    {
        this.last.ignite      = 0;
        this.last.block       = 0;
        this.last.score       = 0;
        this.last.total_socre = 0;
        this.last.islands     = 0;
        this.last.island_size = 0;

        this.best = this.last;

        this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent<ScoreDisp>();
        this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>();
        this.unito_control = GameObject.FindGameObjectWithTag("Player").GetComponent<unitoControl>();

        this.rocket_motion = GameObject.Find("rocket_model").gameObject.GetComponentInChildren<Animation>();		//motion
    }