You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
553 B

  1. using System;
  2. using SUISS.Core;
  3. using UnityEngine;
  4. public class CIGIslandContainer : MonoBehaviour
  5. {
  6. protected void Awake()
  7. {
  8. Island currentIsland = SingletonMonobehaviour<CIGIslandsManager>.Instance.CurrentIsland;
  9. GameObject readOnlyIslandPrefabByName = SingletonMonobehaviour<CIGVisitingIslandsManager>.Instance.GetReadOnlyIslandPrefabByName(currentIsland);
  10. GameObject gameObject = UnityEngine.Object.Instantiate<GameObject>(readOnlyIslandPrefabByName, base.transform);
  11. gameObject.name = readOnlyIslandPrefabByName.name;
  12. }
  13. }