// 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>(); }
public Calculator() { InitializeComponent(); TextFirst = "600000"; TextSecond = "365"; TextThird = "0"; CountTime.Start(); }
void Start() { boat = GetComponent <Rigidbody2D>(); started = false; previous_x = transform.position.x; previous_y = transform.position.y; count_time = count_time_gameobject.GetComponent <CountTime>(); }
// 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); }
protected override string Save(object obj) { CountTime t = obj as CountTime; return(t.Counter.ToString()); }
// Start is called before the first frame update void Start() { instance = this; FireCoolTime = FireCD; LightningCoolTime = LightningCD; }