// Start is called before the first frame update
 void Start()
 {
     if (m_islandSet == null)
     {
         m_islandSet = GetComponentInChildren <PlayerIslandSet>();
     }
     if (NPCIslandSets.Length == 0)
     {
         NPCIslandSets = GetComponentsInChildren <NPCIslandSet>();
     }
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        if (m_islandSet == null)
        {
            m_islandSet = GetComponentInChildren <PlayerIslandSet>();
        }
        if (NPCIslandSets.Length == 0)
        {
            NPCIslandSets = GetComponentsInChildren <NPCIslandSet>();
        }

        GameEvents.Sigton.onNPCIslandAppear += () =>
        {
            NPCIslandAppear("NPC");
        };
        GameEvents.Sigton.onNPCIslandCombined += () =>
        {
            NPCIslandCombine("NPC");
        };
    }