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); } }
public GameObject CreateObject( MainObjectTag mainTag, SubObjectTag subTag, int[] position) { return(CreateObject(mainTag, subTag, position[0], position[1])); }
public bool CanSeeTarget(MainObjectTag targetTag) { return(CanSeeTarget <MainObjectTag>(targetTag)); }
private void SetTags(MainObjectTag main, SubObjectTag sub, GameObject go) { go.AddComponent <MetaInfo>(); go.GetComponent <MetaInfo>().SetMainTag(main); go.GetComponent <MetaInfo>().SetSubTag(sub); }
public void SetMainTag(MainObjectTag tag) { MainTag = tag; }