Example #1
0
 void Start()
 {
     eat = GameObject.FindGameObjectWithTag("Player").GetComponent <MonsterEat>();
 }
Example #2
0
 void Start()
 {
     eat = GameObject.FindGameObjectWithTag("Player").GetComponent<MonsterEat>();
 }
Example #3
0
 void Start()
 {
     rb   = GetComponent <Rigidbody2D>();
     anim = GetComponent <Animator>();
     eat  = GetComponent <MonsterEat>();
 }
Example #4
0
 void Start()
 {
     rb = GetComponent<Rigidbody2D>();
     anim = GetComponent<Animator>();
     eat = GetComponent<MonsterEat>();
 }