コード例 #1
0
    public static void Run()
    {
        AddFollower adf = new AddFollower();

        // do whatever you want here with adf
        // initialize API here
        adf.AddFollowerState(2, IInstaApi);
        // handle results here
    }
コード例 #2
0
    // Start is called before the first frame update

    void Start()
    {
        gameObject.SetActive(false);
        PlantASeed.GetComponent <Button>().onClick.AddListener(SeedPlant);
        ExitFarmMenu.GetComponent <Button>().onClick.AddListener(FarmMenuExit);
        AddFollower.GetComponent <Button>().onClick.AddListener(FollowerAdd);
        //Uncomment above code after AddFollowerFarm is added to public GameObject



        list1.Add(new PlantList(1, "Cherry", false, 120, 65));
        list1.Add(new PlantList(2, "Apple", true, 100, 40));
        list1.Add(new PlantList(3, "Grape", false, 400, 150));
        list1.Add(new PlantList(4, "Orange", false, 580, 220));
    }