Example #1
0
 void Start()
 {
     coll = GetComponent <CollCheck>();
     rb   = GetComponent <Rigidbody2D>();
     anim = GetComponentInChildren <SwitchAnim>();
 }
Example #2
0
 private void Start()
 {
     anim = FindObjectOfType <SwitchAnim>();
     move = FindObjectOfType <Movement>();
     sr   = GetComponent <SpriteRenderer>();
 }