Esempio n. 1
0
        public GameObject CreateObject(
            MainObjectTag mainTag, SubObjectTag subTag, int x, int y)
        {
            switch (mainTag)
            {
            case MainObjectTag.Actor:
                return(CreateActor(subTag, x, y));

            case MainObjectTag.Building:
                return(CreateBuilding(subTag, x, y));

            case MainObjectTag.Doppleganger:
                return(CreateDoppleganger(subTag, x, y));

            default:
                return(null);
            }
        }
Esempio n. 2
0
 public GameObject CreateObject(
     MainObjectTag mainTag, SubObjectTag subTag, int[] position)
 {
     return(CreateObject(mainTag, subTag, position[0], position[1]));
 }
Esempio n. 3
0
 public bool CanSeeTarget(MainObjectTag targetTag)
 {
     return(CanSeeTarget <MainObjectTag>(targetTag));
 }
Esempio n. 4
0
 private void SetTags(MainObjectTag main, SubObjectTag sub, GameObject go)
 {
     go.AddComponent <MetaInfo>();
     go.GetComponent <MetaInfo>().SetMainTag(main);
     go.GetComponent <MetaInfo>().SetSubTag(sub);
 }
Esempio n. 5
0
 public void SetMainTag(MainObjectTag tag)
 {
     MainTag = tag;
 }