Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (!buttonPushed)
     {
         if (other.tag == "Table")
         {
             return;
         }
         buttonObj.transform.localPosition = new Vector3(0, 1.35f, 0);
         if (sceneReloader)
         {
             FindObjectOfType <AdditiveSceneMethod.AdditiveSceneController>().CallReload(2);
         }
         else
         {
             if (!shownWindow)
             {
                 tutorialWindow.Show();
             }
             else
             {
                 tutorialWindow.Hide();
             }
             shownWindow = !shownWindow;
         }
     }
 }
Пример #2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        GenericUIWindowScript myTarget = (GenericUIWindowScript)target;

        if (Application.isPlaying)
        {
            if (GUILayout.Button("Show"))
            {
                myTarget.Show();
            }

            if (GUILayout.Button("Hide"))
            {
                myTarget.Hide();
            }
        }
        else
        {
            if (GUILayout.Button("Enable play mode"))
            {
            }

            if (GUILayout.Button("Enable play mode"))
            {
            }
        }
    }
Пример #3
0
 void AllTrigger()
 {
     if (T1.isTrigger1 == true && T2.isTrigger2 == true && T3.isTrigger3 == true && T4.isTrigger4 == true && T5.isTrigger5 == true && T6.isTrigger6 == true)
     {
         isHasPlayerWon = true;
         window.Show();
         enabled = false;
     }
     else if (ET1.isETrigger1 == true && ET2.isETrigger2 == true && ET3.isETrigger3 == true && ET4.isETrigger4 == true && ET5.isETrigger5 == true && ET6.isETrigger6 == true)
     {
         isHasEnermyWon = true;
         losedow.Show();
         enabled = false;
     }
 }