void Start() { mainGameScript = FindObjectOfType <MainGameScript>(); playerGameScript = FindObjectOfType <PlayerGameScript>(); text = GetComponent <Text>(); }
void Start() { mainGameScript = FindObjectOfType <MainGameScript>(); playerGameScript = FindObjectOfType <PlayerGameScript>(); audioPlayer = FindObjectOfType <AudioPlayer>(); nextDayClicked = false; }
protected override void Awake() { base.Awake(); input = GetComponent <BaseInput>(); physicsObject = GetComponent <BipedPhysicsObject>(); gameScript = GetComponent <PlayerGameScript>(); }
void Start() { needleImage = GetComponent <Image>(); //meterImage = GetComponentInParent<Image>(); mainGameScript = FindObjectOfType <MainGameScript>(); playerGameScript = FindObjectOfType <PlayerGameScript>(); hidingCoroutine = StartCoroutine(Hide()); }
void Start() { playerGameScript = FindObjectOfType <PlayerGameScript>(); playerAnimationController = FindObjectOfType <PlayerAnimationController>(); renderer = GetComponent <SpriteRenderer>(); originalX = transform.localPosition.x; hasMouseOver = false; }
private IEnumerator Timer() { IsStart = true; yield return(new WaitForSeconds(60.0f)); Debug.Log("game set"); Im.isThrowable = false; TimeOver = true; PlayerGameScript.AddScoreToLeaderboard(GPGSIds.leaderboard_time_attack_ranking, standCount); PlayerGameScript.ShowLeaderboardsUI(); }
void Start() { playerGameScript = FindObjectOfType <PlayerGameScript>(); image = GetComponent <Image>(); text = GetComponentInChildren <Text>(); originalColor = image.color; originalTextColor = text.color; Hide(); }
void Start() { animator = GetComponent <Animator>(); spriteRenderer = GetComponent <SpriteRenderer>(); characterController = GetComponent <PlayerCharacterController>(); gameScript = GetComponent <PlayerGameScript>(); waterMask = GetComponentInChildren <WaterMaskAnimationController>().gameObject; previousWaterLevel = gameScript.waterLevel; }
void Start() { controls = GetComponent <MouseControls>(); gameScript = GetComponent <PlayerGameScript>(); mainGameScript = FindObjectOfType <MainGameScript>(); direction = Vector2.right; startingPosition = transform.position; newDay = false; }
public void Test() { PlayerGameScript.ShowLeaderboardsUI(); }
public void UploadScore() { PlayerGameScript.AddScoreToLeaderboard(GPGSIds.leaderboard_time_attack_ranking, 10); }
void Awake() { input = GetComponent <BaseInput>(); gameScript = GetComponent <PlayerGameScript>(); }