Beispiel #1
0
 void Awake()
 {
     player = GetComponent<Player>();
     renderer = GetComponent<SpriteRenderer>();
     animator = GetComponent<Animator>();
 }
Beispiel #2
0
 void Awake()
 {
     rigidBody2D = GetComponent<Rigidbody2D>();
     player = GetComponent<Player>();
     RandomizeStatus();
 }