Esempio n. 1
0
 // Start is called before the first frame update
 void Awake()
 {
     boat_control = boat.GetComponent <BoatControl>();
     count_time   = count_time_gameobject.GetComponent <CountTime>();
     go_text      = go_text_gameobject.GetComponent <Text>();
     result_text  = result_text_gameobject.GetComponent <Text>();
 }
Esempio n. 2
0
 public Calculator()
 {
     InitializeComponent();
     TextFirst  = "600000";
     TextSecond = "365";
     TextThird  = "0";
     CountTime.Start();
 }
Esempio n. 3
0
 void Start()
 {
     boat       = GetComponent <Rigidbody2D>();
     started    = false;
     previous_x = transform.position.x;
     previous_y = transform.position.y;
     count_time = count_time_gameobject.GetComponent <CountTime>();
 }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        if (PlayerPrefs.HasKey(PrefShowBanner) && PlayerPrefs.GetInt(PrefShowBanner) == 0)
        {
            enabled = false;
            return;
        }

                #if UNITY_ANDROID
        string adUnitId = "ca-app-pub-9593729489650617/6232962689";
                #elif UNITY_IPHONE
        string adUnitId = "INSERT_IOS_BANNER_AD_UNIT_ID_HERE";
                #else
        string adUnitId = "unexpected_platform";
                #endif

        bannerView           = new BannerView(adUnitId, AdSize.Banner, AdPosition.Top);
        bannerView.AdLoaded += OnAdLoaded;

        counter = new CountTime(RefreshRate);

        RequestBanner();
        UI.ShiftTopBar(true);
    }
Esempio n. 5
0
    protected override string Save(object obj)
    {
        CountTime t = obj as CountTime;

        return(t.Counter.ToString());
    }
Esempio n. 6
0
 // Start is called before the first frame update
 void Start()
 {
     instance          = this;
     FireCoolTime      = FireCD;
     LightningCoolTime = LightningCD;
 }