コード例 #1
0
ファイル: BrickScript.cs プロジェクト: RohitMoni/BrickBreaker
        // Use this for initialization
        void Start()
        {
            var managers = GameObject.FindGameObjectWithTag("Managers");

            _gameManager        = managers.GetComponent <GameManagerScript>();
            _brickManager       = managers.GetComponent <BrickManagerScript>();
            _powerupManager     = managers.GetComponent <PowerupManagerScript>();
            _soundManager       = managers.GetComponent <SoundManagerScript>();
            _brickDestroyEffect = GameObject.FindGameObjectWithTag("ParticleBrickDestroy");
            PointValue          = 10;
            HealthTotal         = DefaultBrickHealth;

            Reset();
        }
コード例 #2
0
 void Start()
 {
     _powerupManager = GameObject.FindGameObjectWithTag("Managers").GetComponent <PowerupManagerScript>();
 }