Exemple #1
0
 private void Awake()
 {
     Player          = GameObject.Find("Player");
     DropCatalog     = GameObject.Find("DropCatalog").GetComponent <DropCatalog_scr>();
     PlayerComponent = Player.GetComponent <Player_movement_scr>();
     //InHandIndicator = GameObject.Find("WorkIndicator");
     //Cursor.SetCursor(CursorDefault, Vector2.zero, CursorMode.Auto);
 }
Exemple #2
0
    void CheckForRecipe()
    {
        if (CanCraft())
        {
            //int[] SlotsID;

            DropCatalog_scr DC = DropCatalog.GetComponent <DropCatalog_scr>();
            for (int i = 0; i < DC.length; i++)
            {
                GameObject current = DC.DROP[i];
                //Dcurrent.GetComponent<Drop_scr>();
            }
        }
    }
 // Start is called before the first frame update
 void Start()
 {
     Cursor          = GameObject.Find("Cursor");
     player          = GameObject.Find("Player").GetComponent <Player_movement_scr>();
     CursorComponent = Cursor.GetComponent <Cursor_scr>();
     DropCatalog     = GameObject.Find("DropCatalog").GetComponent <DropCatalog_scr>();
     //sprite = Active.GetComponent<Image>();
     if (inSlot == null)
     {
         busy = false;
         Active.SetActive(false);
         Default.SetActive(true);
     }
     else
     {
         busy = true;
         Active.SetActive(true);
         Default.SetActive(false);
     }
 }