Пример #1
0
 // 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>();
 }
Пример #2
0
 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>();
 }
Пример #3
0
    private void Start()
    {
        playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>();
        _audioSource = GetComponent <AudioSource>();

        if (PlayerPrefs.HasKey(saveName))
        {
            LoadData();
        }
    }
Пример #4
0
    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();
        }
    }
Пример #5
0
 void Start()
 {
     playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>();
 }
Пример #6
0
 private void Start()
 {
     player       = GameObject.Find("TestPlayer(Clone)");
     playerScript = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>();
     _audioSource = GetComponent <AudioSource>();
 }
Пример #7
0
 private void Start()
 {
     player          = GameObject.Find("TestPlayer(Clone)");
     playerScript    = GameObject.Find("TestPlayer(Clone)").GetComponent <Player_subslope>();
     player_renderer = player.GetComponent <Renderer>();
 }