Exemple #1
0
 private void Init()
 {
     imageManager        = gameObject.AddComponent <ImageManager2>();
     Instance            = this;
     itemManager         = new ItemManager(gameObject);
     photoprompt         = new Photoprompt(itemManager);
     m_PhotoNotReachable = new PhotoNotReachable(PhotoNotReachableButtonEvent);
     MsgBase.MsgAdd <GameObject, MySkyInputEvent.DragState, Vector2, Vector2, Vector3>("EventDrag", EventDrag);
     MsgBase.MsgAdd <GameObject, MySkyInputEvent.ClickState, Vector2>("EventClick", OnClickPhoto);
     MsgBase.MsgAdd("Updatephoto", Updatephoto);
     MsgBase.MsgAdd <Callback, bool>("SetIsAngle02", SetIsAngle02);
 }
Exemple #2
0
    void Awake()
    {
        instance = this;

        StartCoroutine(WaitToGCcollect());
    }