Ejemplo n.º 1
0
        void ISceneCharacter.Release()
        {
            //暂时先直接删除,后期要替换成回收到对象池
            Position  = Vector3.zero;
            Rotation  = Vector3.zero;
            Direction = Vector3.zero;
            transform = null;
            animCtrl.Release();

            CommonUtil.AssetTrackMgr.ReleaseGameObject(PrefabPath, gameObject);
            gameObject = null;
        }
Ejemplo n.º 2
0
        void ISceneCharacter.Release()
        {
            //暂时先直接删除,后期要替换成回收到对象池
            Position  = Vector3.zero;
            Rotation  = Vector3.zero;
            Direction = Vector3.zero;
            transform = null;
            animCtrl.Release();

            GameObject.Destroy(gameObject);
            gameObject = null;
        }