Example #1
0
 void Awake()
 {
     player   = GameObject.Find("Player").GetComponent <Collider2D>();
     collider = GetComponent <Collider2D>();
     food     = GetComponentInChildren <CoinBlockContent>();
 }
Example #2
0
 void Start()
 {
     Player = GameObject.Find("Player").GetComponent <Transform>();
     food   = GetComponentInChildren <CoinBlockContent>();
 }