Inheritance: 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
ファイル: Bullet.cs プロジェクト: etecaf-games/hunting-dogs
 void Start()
 {
     rgbd = GetComponent <Rigidbody2D>();
     ZW   = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>();
 }