예제 #1
0
 public static PlanetariaGameObject[] FindGameObjectsWithTag(string tag)
 {
     GameObject[]           game_objects = GameObject.FindGameObjectsWithTag(tag);
     PlanetariaGameObject[] result       = new PlanetariaGameObject[game_objects.Length];
     for (int index = 0; index < game_objects.Length; ++index)
     {
         result[index] = new PlanetariaGameObject(game_objects[index]);
     }
     return(result);
 }
예제 #2
0
        public bool Equals(PlanetariaGameObject other)
        {
            if (System.Object.ReferenceEquals(this, other))
            {
                return(true);
            }
            if (System.Object.ReferenceEquals(this.internal_game_object, other != null ? other.internal_game_object : null))
            {
                return(true);
            }

            return(this.internal_game_object == (other != null ? other.internal_game_object : null));
        }
예제 #3
0
 public static void DestroyImmediate(PlanetariaGameObject game_object, bool allow_destroying_assets = false)
 {
     GameObject.DestroyImmediate(game_object.internal_game_object, allow_destroying_assets);
 }
예제 #4
0
 public static void DontDestroyOnLoad(PlanetariaGameObject game_object)
 {
     GameObject.DontDestroyOnLoad(game_object.internal_game_object);
 }
예제 #5
0
 // Static Methods
 public static void Destroy(PlanetariaGameObject game_object, float time_delay = 0)
 {
     GameObject.Destroy(game_object.internal_game_object, time_delay);
 }