mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2025-06-27 22:56:11 +02:00
organize into upm directory structure
This commit is contained in:
3
Samples~/ExampleAnimalWorldAssembly/AmimalWorld.asmdef
Normal file
3
Samples~/ExampleAnimalWorldAssembly/AmimalWorld.asmdef
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "AmimalWorld"
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b7100eb7c609e2418517e5c25caaf2a
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Samples~/ExampleAnimalWorldAssembly/Animals.meta
Normal file
8
Samples~/ExampleAnimalWorldAssembly/Animals.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b4a0269d5bc8b7345b6e2b1160c596db
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
42
Samples~/ExampleAnimalWorldAssembly/Animals/AnimalBase.cs
Normal file
42
Samples~/ExampleAnimalWorldAssembly/Animals/AnimalBase.cs
Normal file
@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
[Serializable]
|
||||
public class AnimalBase : IAnimal
|
||||
{
|
||||
[SerializeField] protected float age;
|
||||
public GameObject food;
|
||||
public virtual void Feed()
|
||||
{
|
||||
Debug.Log("Thanks");
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class AnimalChild : AnimalBase {}
|
||||
|
||||
[Serializable]
|
||||
public abstract class AnimalGrandChildAbstract : AnimalBase
|
||||
{
|
||||
public string someString;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class AbstractAnimalGrandChild : AnimalGrandChildAbstract {}
|
||||
|
||||
|
||||
[Serializable]
|
||||
public abstract class AbstractAnimal : IAnimal
|
||||
{
|
||||
[SerializeField] protected float age;
|
||||
public GameObject food;
|
||||
public virtual void Feed()
|
||||
{
|
||||
Debug.Log("Thanks");
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class AbstractAnimalChild : AbstractAnimal {}
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c24236542320b8b438a9c637fc34365c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
4
Samples~/ExampleAnimalWorldAssembly/Animals/IAnimal.cs
Normal file
4
Samples~/ExampleAnimalWorldAssembly/Animals/IAnimal.cs
Normal file
@ -0,0 +1,4 @@
|
||||
public interface IAnimal
|
||||
{
|
||||
void Feed();
|
||||
}
|
11
Samples~/ExampleAnimalWorldAssembly/Animals/IAnimal.cs.meta
Normal file
11
Samples~/ExampleAnimalWorldAssembly/Animals/IAnimal.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e7999ba5a7a8e941923ff9d8795fd59
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,7 @@
|
||||
using System;
|
||||
|
||||
[Serializable]
|
||||
public abstract class MammalBase : AnimalBase
|
||||
{
|
||||
public int numberOfBones;
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7dae106e8c3cf94198d8c1d0e9bce89
|
||||
timeCreated: 1579584059
|
Reference in New Issue
Block a user