Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            Trip trip = new TripToRussia();

            Console.WriteLine(trip.getDescription() + " " + trip.cost() + " $");

            Trip trip1 = new TripToParis();

            trip1 = new Airplane(trip1);
            trip1 = new OceanView(trip1);
            trip1 = new SevenDays(trip1);
            Console.WriteLine(trip1.getDescription() + " " + trip1.cost() + " $");

            Trip trip2 = new TripToMexica();

            trip2 = new Bus(trip2);
            trip2 = new Lux(trip2);

            Console.WriteLine(trip2.getDescription() + " " + trip2.cost() + " $");



            Console.ReadKey();
        }
    void Awake()
    {
        sevenDayReward = this;
        someDay        = (SevenDays)Enum.Parse(typeof(SevenDays), gameObject.name);

        //int haveGotReward = int.Parse(BtnGameManager.yt[0]["CanDailyBenefits"].YuanColumnText);
        //int canRewadDays = int.Parse(BtnGameManager.yt[0]["DailyBenefits"].YuanColumnText);
        //Debug.Log("seven day ============================" + haveGotReward + "------" + canRewadDays);
        //PanelDailyBenefits.panelDailyBenefits.SetBtnState(haveGotReward, canRewadDays);
    }
Esempio n. 3
0
        public override void SetPluginInfo(string name, string path)
        {
            base.SetPluginInfo(name, path);

            sdtd = Interface.Oxide.GetLibrary <SevenDays>("SDTD");
        }