コード例 #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     formmMngr = this.GetComponent <PlayerFormManager>();
     meta      = this.GetComponent <PlayerMetadata>();
     agent     = this.GetComponent <NavMeshAgent>();
 }
コード例 #3
0
 private void Start()
 {
     myPlayer    = this.GetComponent <PlayerMetadata>();
     myPlayerMgr = this.GetComponent <PlayerFormManager>();
 }