void Start() { Instance = this; //set Dialog Disactive CoinsPack.SetDialogActive(false); BuyExtraStage.SetDialogActive(false); BackBtn.onClick.AddListener(onClickBACK); UpdateTotalCoinsText(); Swipe = GetComponent <SwipeHandler>(); SelectedLevel = 0; //must be 0 (level 1 selected at the start) MaxLevels = Levels.Length; InitGUILevels(); EventHandler.onBuyCoinsEvent += onBuyCoinsComplete; }
void Awake() { instance = this; lastSwipeDirection = SwipeDirection.up; }
void Start () { speed = spee.GetSpeed(); SwipeHandler oySwipe = new SwipeHandler();//start swipes need to check }
void Awake() { instance = this; lastSwipeDirection = SwipeDirection.up; AssignInput(); }
// Use this for initialization void Start() { anim = transform.GetComponent<Animator>(); spriteRenderer = transform.FindChild("Dino1_0").GetComponent<SpriteRenderer>(); anim.SetBool("Run", true); rigid = GetComponent<Rigidbody2D>(); gameMgr = GameObject.Find("Scenery").GetComponent<NewGameManager>(); SwipeHandler = GameObject.Find("Scenery").GetComponent<SwipeHandler>(); audioSrc = GetComponent<AudioSource>(); }