Beispiel #1
0
 // 刷新一个新球
 void RefreshNewBall()
 {
     if (!fireBall.gameObject.activeSelf)
     {
         newBallType     = GameBulletinBoard.GameStrategy();
         fireBall.sprite = GameBulletinBoard.MapConfig.GetSpriteFromType(newBallType);
         fireBall.gameObject.SetActive(true);
     }
 }
Beispiel #2
0
        void Awake()
        {
            // 适配屏幕处理
            if (Camera.main.aspect > (2 / 3f))
            {
                Camera.main.orthographicSize = 4.8f * (2 / 3f) / Camera.main.aspect;
            }

            mMapConfig.InitRunningConfg();
            GameBulletinBoard.SetGameManager(this);
            GameBulletinBoard.SetMapConfig(mMapConfig);

            MapBallMountNode = transform.Find("Map");
            mSnakeSegment    = new List <Ball>();
        }
Beispiel #3
0
 void Start()
 {
     GameBulletinBoard.SetFx(this);
     pool = new SCObjectPool <GameObject> (OnNewInstanceFx, 15);
 }
 void Awake()
 {
     GameBulletinBoard.SetFireBallManager(this);
 }
Beispiel #5
0
 void Awake()
 {
     GameBulletinBoard.SetGamePool(this);
 }
Beispiel #6
0
 BallType GameStrategy()
 {
     return(GameBulletinBoard.GameStrategy());
 }