예제 #1
0
    /// <summary>
    /// Create a new CrewMember object
    /// </summary>
    private CrewMemberUI CreateCrewMember(CrewMember cm, Transform parent, bool usable)
    {
        var crewMember = Instantiate(_crewPrefab, parent, false);

        crewMember.name = cm.SplitName();
        crewMember.SetUp(usable, cm, cm.GetMood());
        return(crewMember);
    }