Esempio n. 1
0
    private void Awake()
    {
        this.objectGameDirector = GameObject.FindWithTag("Director");
        this.scriptOutputTips   = this.objectGameDirector.GetComponent <OutputTips>();

        this.objectSEManager = GameObject.FindWithTag("SEManager");
        this.scriptSEManager = this.objectSEManager.GetComponent <SEManager>();

        this.objectParentOfGroups = GameObject.FindWithTag("ParentOfGroups");

        this.scriptBulletManager = this.GetComponent <BulletManager>();
    }
Esempio n. 2
0
    private void Awake()
    {
        this.objectGameDirector = GameObject.FindWithTag("Director");
        this.scriptDestroyAll   = this.objectGameDirector.GetComponent <DestroyAll>();
        this.scriptOutputTips   = this.objectGameDirector.GetComponent <OutputTips>();

        this.objectMainCamera = GameObject.FindWithTag("MainCamera");

        this.objectSEManager = GameObject.FindWithTag("SEManager");
        this.scriptSEManager = this.objectSEManager.GetComponent <SEManager>();

        this.scriptTargetManager = this.GetComponent <TargetManager>();
    }
    private void Awake()
    {
        this.objectGameDirector = GameObject.FindWithTag("Director");
        this.scriptOutputTips   = this.objectGameDirector.GetComponent <OutputTips>();

        this.objectSEManager = GameObject.FindWithTag("SEManager");
        this.scriptSEManager = this.objectSEManager.GetComponent <SEManager>();

        this.scriptMoveObject   = this.GetComponent <MoveObject>();
        this.scriptRotateObject = this.GetComponent <RotateObject>();

        this.NumOfTargetChildren = 0;
        this.NumOfBulletChildren = 0;
    }
    private void Awake()
    {
        this.scriptBGMPlayer   = this.GetComponent <BGMPlayer>();
        this.scriptOutputScore = this.GetComponent <OutputScore>();
        this.scriptOutputTime  = this.GetComponent <OutputTime>();
        this.scriptOutputTips  = this.GetComponent <OutputTips>();
        this.scriptDestroyAll  = this.GetComponent <DestroyAll>();

        this.objectSEManager = GameObject.FindWithTag("SEManager");
        this.scriptSEManager = this.objectSEManager.GetComponent <SEManager>();

        this.rendererPlayer = this.objectPlayer.GetComponent <MeshRenderer>();
        this.rendererEnemy  = this.objectEnemy.GetComponent <MeshRenderer>();

        this.scriptEnemyManager = this.objectEnemy.GetComponent <EnemyManager>();

        isGameRunning    = true;
        currentWave      = 0;
        timerBeforeRetry = 0;
    }