Esempio n. 1
0
        public override void ImportMap(GameObject map, ShipStatus shipStatus)
        {
            SpriteRenderer = MapSearcher.SearchComponent <SpriteRenderer>(map, SpriteRendererName);
            GameObj        = MapSearcher.SearchChildren(map, GameObjName);

            if (TaskType == TaskType.Common)
            {
                Behavior = MapSearcher.SearchList(shipStatus.CommonTasks, BehaviorName);
            }
            if (TaskType == TaskType.Short)
            {
                Behavior = MapSearcher.SearchList(shipStatus.NormalTasks, BehaviorName);
            }
            if (TaskType == TaskType.Long)
            {
                Behavior = MapSearcher.SearchList(shipStatus.LongTasks, BehaviorName);
            }
        }
Esempio n. 2
0
 public override void ImportMap(GameObject map, ShipStatus shipStatus)
 {
     SpriteRenderer = MapSearcher.SearchComponent <SpriteRenderer>(map, SpriteRendererName);
     GameObj        = MapSearcher.SearchChildren(map, GameObjName);
     Behavior       = MapSearcher.SearchList(shipStatus.SpecialTasks, BehaviorName);
 }