コード例 #1
0
 void OnEnable()
 {
     game   = GameObject.Find(GAME_STATE).GetComponent <IGameStateReadOnly>();
     player = GameObject.Find(PLAYER).GetComponent <IPlayerStateReadOnly>();
 }
コード例 #2
0
 void OnEnable()
 {
     game = GameObject.Find(GAME_STATE).GetComponent<IGameStateReadOnly>();
     player = GameObject.Find(PLAYER).GetComponent<IPlayerStateReadOnly>();
 }
コード例 #3
0
 void Start()
 {
     player = transform.parent.GetComponent<PlayerManager>();
     state = transform.parent.GetComponent<IPlayerStateFullAccess>();
     game = GameObject.Find(GAME_STATE).GetComponent<IGameStateReadOnly>();
 }
コード例 #4
0
 void Start()
 {
     player = transform.parent.GetComponent <PlayerManager>();
     state  = transform.parent.GetComponent <IPlayerStateFullAccess>();
     game   = GameObject.Find(GAME_STATE).GetComponent <IGameStateReadOnly>();
 }