Example #1
0
 // 刷新一个新球
 void RefreshNewBall()
 {
     if (!fireBall.gameObject.activeSelf)
     {
         newBallType     = GameBulletinBoard.GameStrategy();
         fireBall.sprite = GameBulletinBoard.MapConfig.GetSpriteFromType(newBallType);
         fireBall.gameObject.SetActive(true);
     }
 }
Example #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>();
        }
Example #3
0
 void Start()
 {
     GameBulletinBoard.SetFx(this);
     pool = new SCObjectPool <GameObject> (OnNewInstanceFx, 15);
 }
 void Awake()
 {
     GameBulletinBoard.SetFireBallManager(this);
 }
Example #5
0
 void Awake()
 {
     GameBulletinBoard.SetGamePool(this);
 }
Example #6
0
 BallType GameStrategy()
 {
     return(GameBulletinBoard.GameStrategy());
 }