Exemplo n.º 1
0
        private PointF[] GetStarPolygon(RectangleF rect)
        {
            switch (_ratingType)
            {
            case StarType.Default:
            {
                return(ElementsManager.GenerateNormalStar(rect));
            }

            case StarType.Thick:
            {
                return(ElementsManager.GenerateFatStar(rect));
            }

            case StarType.Detailed:
            {
                return(ElementsManager.GenerateDetailedStar(rect));
            }

            default:
            {
                return(null);
            }
            }
        }
Exemplo n.º 2
0
        protected override void Start()
        {
            base.Start();
            em = ElementsManager.Instance;
            ElementsManager.Instance.TrafficLightList.Add(this);
            SetLight(lightMode);

            CanScale  = false;
            CanDrag   = false;
            CanDelete = false;
        }
Exemplo n.º 3
0
        static public void InitializeAll()
        {
            // API features
            EventManager.Init();
            ElementsManager.Init();
            ViewportPointerEvents.Init();
            MainMenuManager.Init();
            ToolbarsManager.Init();
            ToolManager.Init();
            Stage.Init();
            TabManager.Init();

            // Extensions
            Festival_Bridge.Tools.Index.Init();
        }
Exemplo n.º 4
0
    /// <summary>
    /// initialize all the managers
    /// </summary>
    public void Init()
    {
        boundMng = GetComponent <BoundManager>();
        if (boundMng != null)
        {
            boundMng.Init();
        }

        mouseMng = GetComponent <MouseManager>();
        if (mouseMng != null)
        {
            mouseMng.Init(this);
        }

        leaderboardMng = GetComponent <LeaderboardManager>();
        if (leaderboardMng != null)
        {
            leaderboardMng.Init();
        }

        scoreMng = GetComponent <ScoreManager>();
        if (scoreMng != null)
        {
            scoreMng.Init(this);
        }

        elementsMng = GetComponent <ElementsManager>();
        if (elementsMng != null)
        {
            elementsMng.Init(this);
        }

        timerMng = GetComponent <TimerManager>();
        if (timerMng != null)
        {
            timerMng.Init(this);
        }

        uiMng = GetComponent <UIManager>();
        if (uiMng != null)
        {
            uiMng.Init(this);
        }
    }
Exemplo n.º 5
0
 private void Start()
 {
     manager = GameObject.Find("Elements").GetComponent <ElementsManager>();
 }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     elementsManager = GetComponent <ElementsManager>();
     actualGameState = GameState.MainMenu; //Init game at MainMenu
     elementsManager.startDemo();          //Play Background Main Menu
 }
 void Awake()
 {
     if (inst == null) {
         inst = this;
     }
 }