public void OnPointerUp(PointerEventData eventData) { if (!isSticked) { GetComponent <CanvasGroup> ().blocksRaycasts = true; StickerManager.GetInstance().EnableOtherStickerSlots(typeOfSticker); } }
// Use this for initialization void Start() { m_PageMode = PAGEMODE.FLITER_MENU; m_stickerController = GameObject.Find("StickerManager").GetComponent <StickerManager>(); m_frameController = GameObject.Find("FrameManager").GetComponent <FrameController> (); m_textController = GameObject.Find("TextManager").GetComponent <TextManager> (); instance = this; }
public void FetchStickers() { foreach (StickerManager.StickerType sticker in stickers.Keys) { if (stickers [sticker]) { StickerManager.GetInstance().SpawnSticker(sticker, stickersPlaced[sticker]); } } }
// Use this for initialization void Start() { if (mPhotoTex == null) { mPhotoTex = new Texture2D((int)Screen.width, (int)Screen.height, TextureFormat.RGB24, false); } m_PageMode = PAGEMODE.FLITER_MENU; m_stickerController = GameObject.Find("StickerManager").GetComponent <StickerManager>(); m_frameController = GameObject.Find("FrameManager").GetComponent <FrameController> (); m_textController = GameObject.Find("TextManager").GetComponent <TextManager> (); Everyplay.RecordingStopped += OnStopRecordingEvent; Everyplay.RecordingStarted += StartRecordingEvent; instance = this; PluginManager.Init(); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } if (!GameManager.GetInstance()) { SwitchScene switchScene = this.gameObject.AddComponent <SwitchScene> (); switchScene.loadScene("Start"); } if (SoundManager.GetInstance()) { SoundManager.GetInstance().ChangeBackgroundMusic(SoundManager.GetInstance().gameBackgroundMusic); } }
// === Core functions ========================================================== // ---------------------------------------------------------------- void Awake() { buttonRect = StickerManager.GetWorldRectFromRT(this.GetComponent <RectTransform>()); }
// ---------------------------------------------------------------- private bool rectOverlaps(RectTransform rectTrans1, Rect rect2) { Rect rect1 = StickerManager.GetWorldRectFromRT(rectTrans1); return(rect1.Overlaps(rect2)); }
public void setStickerManager(StickerManager mgr) { m_stickermanager = mgr; }