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); } } }
protected override void Start() { base.Start(); em = ElementsManager.Instance; ElementsManager.Instance.TrafficLightList.Add(this); SetLight(lightMode); CanScale = false; CanDrag = false; CanDelete = false; }
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(); }
/// <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); } }
private void Start() { manager = GameObject.Find("Elements").GetComponent <ElementsManager>(); }
// 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; } }