Ejemplo n.º 1
0
    ScriptItemPhoto GetCurrentItemPhoto()
    {
        ScriptItemPhoto sip = null;
        ScriptWritten   sw  = transform.parent.GetComponent <ScriptWritten> ();

        for (int i = 0; i < sw.mListItemPhoto.Count; i++)
        {
            ScriptItemPhoto tmp = sw.mListItemPhoto[i].GetComponent <ScriptItemPhoto>();
            if (tmp.isActive())
            {
                if (i == 3)
                {
                }
                else
                {
                    continue;
                }
            }
            else
            {
                sip = tmp;
                break;
            }
        }

        return(sip);
    }
Ejemplo n.º 2
0
    void OpenCamera()
    {
        ScriptItemPhoto sip = GetCurrentItemPhoto();

        if (sip == null)
        {
            return;
        }
        if (Application.platform == RuntimePlatform.Android)
        {
            AndroidMgr.OpenCamera(new EventDelegate(this, "GotPhoto"));
        }
        else
        {
        }
    }