Exemplo n.º 1
0
    /// <summary>
    /// Remove below functions and offload them to another class to define entity behaviors more in scope with functions intentions
    /// </summary>


    //currently a test function - unsure if ondestroy reponsibility shoud be here or somewhere else
    private void OnDestroy()
    {
        if (director != null)
        {
            director.RemoveEntity(this.gameObject);
        }
    }