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