コード例 #1
0
 private void Awake()
 {
     _playerSts = GetComponent <playerSts>();
 }
コード例 #2
0
 void Awake()
 {
     _playerHp = GameObject.FindGameObjectWithTag("Player").GetComponent <playerSts>();
     Destroy(gameObject, 20);
 }
コード例 #3
0
 void Awake()
 {
     player     = GameObject.FindGameObjectWithTag("Player");
     _playerSts = GameObject.FindGameObjectWithTag("Player").GetComponent <playerSts>();
 }