Ejemplo n.º 1
0
 public static NPCPanel2 Instance()
 {
     if (!npcPanel2)
     {
         npcPanel2 = FindObjectOfType(typeof(NPCPanel2)) as NPCPanel2;
         if (!npcPanel2)
         {
             Debug.LogError("There needs to be one active NPCPanel2 script on a GameObject in your Scene");
         }
     }
     return(npcPanel2);
 }
Ejemplo n.º 2
0
    /*
     * void Start()
     * {
     *
     *  flowerButton.onClick.AddListener(() => item.DestroyItem(flowerButton));
     *  paintingButton.onClick.AddListener(() => item.DestroyItem(paintingButton));
     * }
     */

    void Awake()
    {
        modalPanel = ModalPanel.Instance();
        movement   = Movement.Instance();
        //   npcPanel = NPCPanel.Instance();
        npcPanel2 = NPCPanel2.Instance();

        meter = PleasantnessMeter.Instance();

        myYesAction    = new UnityAction(TestYesFunction);
        myNoAction     = new UnityAction(TestNoFunction);
        myCancelAction = new UnityAction(TestCancelFunction);

        /*
         * flowerButton = GameObject.Find("FlowerButton").GetComponent<Button>();
         * paintingButton = GameObject.Find("PaintingButton").GetComponent<Button>();
         */
    }
Ejemplo n.º 3
0
 void Awake()
 {
     movement  = Movement.Instance();
     npcPanel2 = NPCPanel2.Instance();
     npcPanel3 = NPCPanel3.Instance();
 }