// Use this for initialization void Awake() { trackMan = GetComponent <TrackCreaterManager>(); if (runTutorial && debug == false) { isJump = true; trackMan.isTutorial = true; if (isAndroid) { trackDifficult = GetComponent <TrackDifficultyManager>(); trackDifficult.isTutorial = true; gMaster = GetComponent <GameMaster>(); gMaster.isTutorial = true; } else { gMasterIOS = GetComponent <IOSGameMaster>(); gMasterIOS.isTutorial = true; } } else if (debug == true) { trackTest = GetComponent <TrackTester>(); isJump = true; } else { trackMan.isTutorial = false; } }
// Use this for initialization void Awake() { //isStart = true; if (isIOS == false) { gMaster = GetComponent <GameMaster>(); } else { gMasterIOS = GetComponent <IOSGameMaster>(); } if (gDebug) { isDebug = true; } else { isDebug = false; } trackDifficultyMan = GetComponent <TrackDifficultyManager>(); playerPos = playerTrans.position; startSpecialNum = specialAppearNum; }
// Use this for initialization void Awake() { isPaused = false; gMaster = GetComponent <IOSGameMaster>(); gMaster.pauseCanvas.SetActive(false); }
// Use this for initialization void Awake() { groundCheckTran = transform.Find("GroundCheck"); rig = GetComponent <Rigidbody2D>(); gMaster = gMaster.GetComponent <IOSGameMaster>(); canMove = true; aniMate = GetComponent <Animator>(); shieldObj = transform.GetChild(0).gameObject; shieldObj.SetActive(false); shieldColour = shieldObj.GetComponent <SpriteRenderer>().color; shieldColourStartingAlpha = shieldColour.a; startingRightSpeed = rightSpeed; sprRend = GetComponent <SpriteRenderer>(); normSpr = sprRend.sprite; boxCol = GetComponent <BoxCollider2D>(); circCol = GetComponent <CircleCollider2D>(); startBoxXSize = boxCol.size.x; startBoxYSize = boxCol.size.y; startCircRadius = circCol.radius; aSource = GetComponent <AudioSource>(); screenPosX = Screen.width / 2; // Half the screen x pos to control the touch positions on phone playLandSound = false; }