Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        pool = EntityPoolBuilder.FindByName("TestPool");

        ZEntity en = pool.CreateEntity(1);

        Debug.Log(" en data is " + en.GetComponent <TestComponent4> ().data4.ToString());

        //test singleton
        TestSingleton test = SingletonEntity <TestSingleton> .Instance;

        if (test != null)
        {
            Debug.Log(" SingletonEntity data is " + test.data2.ToString());
        }
    }