コード例 #1
0
 public static string GetName(ESwitchableObjectId id)
 {
     return(GameUtils.GetNameByPath(GameConstants.switchableObjectPaths[id]));
 }
コード例 #2
0
 public static SwitchableObject GetAsChildByPath(GameObject parent, ESwitchableObjectId id)
 {
     return(parent.transform.Find(GetPath(id)).GetComponent <SwitchableObject>());
 }
コード例 #3
0
 public static string GetPath(ESwitchableObjectId id)
 {
     return(GameConstants.switchableObjectPaths[id]);
 }