コード例 #1
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
コード例 #2
0
    void Awake()
    {
        instantiate = GetComponent <InstantiatePrefabs>();


        rig = GetComponent <Rigidbody2D>();

        Destroy(this.gameObject, 3f);
    }