예제 #1
0
        // Add Agent Component to the gameObject
        public static Adult CreateComponent(GameObject agent_obj,
                                            CitizenGender parameter1,
                                            AdultVariation parameter2,
                                            CitizenTraits parameter3,
                                            AdultEducation parameter4)
        {
            Adult myC = agent_obj.AddComponent <Adult>();

            myC.setGender(parameter1);
            myC.variation = parameter2;
            myC.traits    = parameter3;
            myC.education = parameter4;

            return(myC);
        }
예제 #2
0
 // 2 argument constructor
 public Employed(Adult employed, Building workplace)
 {
     this.employed  = employed;
     this.workplace = workplace;
 }