Example #1
0
 /* Exit button: exit out of animation mode, no
  * button interface */
 public void onClickExit()
 {
     if (checkActive())
     {
         //return initial state of protein icons
         activeKey.tag     = "Untagged";
         activeProtein.tag = "Untagged";
         animateProteinScript.setActiveFalse();
         enableModelScript.terminateAnimation();
         Debug.Log("Exiting");
         clearOtherModelScript.SetActive(true);
     }
 }
Example #2
0
    private void OnMouseDown()
    {
        //toggle active
        isAlive = true;
        start.gameObject.SetActive(isAlive);
        exit.gameObject.SetActive(isAlive);

        //initiate proteins to prep animation
        model.transform.position = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2.0f, 3.0f * Screen.height / 4.0f, 300));
        gameObject.tag           = "activeKey";
        parent.tag = "activeProtein";
        Debug.Log("I am alive");

        count = 0.0f;
        translateToInitActive = true;
        clearOtherModelScript.SetActive(false);
    }