상속: MonoBehaviour
예제 #1
0
 void Start()
 {
     rgbd                 = GetComponent <Rigidbody2D>();
     ZW                   = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>();
     direction            = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>().localScale.x;
     transform.localScale = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>().localScale;
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     Player = GetComponent <Rigidbody2D>();
     TW     = GetComponent <EndOfTheWorld>();
     ATK    = GetComponent <PlayerAttack>();
     Dash   = GetComponent <Dash>();
 }
예제 #3
0
 void Start()
 {
     target = GameObject.FindGameObjectWithTag("Player");
     rb     = GetComponent <Rigidbody2D>();
     anim   = GetComponent <Animator>();
     ZW     = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>();
 }
예제 #4
0
 void Start()
 {
     rgbd = GetComponent <Rigidbody2D>();
     ZW   = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>();
 }