// Start is called before the first frame update void Start() { player = GameObject.Find("TestPlayer(Clone)"); playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>(); enterenceSptireRenderer = GetComponent <SpriteRenderer>(); animator = GetComponent <Animator>(); }
private void Start() { player = GameObject.Find("TestPlayer(Clone)"); playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>(); rb2D = player.GetComponent <Rigidbody2D>(); animator = player.GetComponent <Animator>(); playerSpriteRenderer = player.GetComponent <SpriteRenderer>(); }
private void Start() { playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>(); _audioSource = GetComponent <AudioSource>(); if (PlayerPrefs.HasKey(saveName)) { LoadData(); } }
private void Start() { player = GameObject.Find("TestPlayer(Clone)"); playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>(); playerCollider = player.GetComponent <Collider2D>(); rb2D = GetComponent <Rigidbody2D>(); pos = player.GetComponent <Transform>(); rb2D.gravityScale = 0; _audioSource = GetComponent <AudioSource>(); if (PlayerPrefs.HasKey(saveName)) { LoadData(); } }
void Start() { playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>(); }
private void Start() { player = GameObject.Find("TestPlayer(Clone)"); playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>(); _audioSource = GetComponent <AudioSource>(); }
private void Start() { player = GameObject.Find("TestPlayer(Clone)"); playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>(); player_renderer = player.GetComponent <Renderer>(); }