public override void Configure(GameObject gameObject)
        {
            //Configure game object:
            this.OnConfigure(gameObject);

            //Make object online:
            var hash128 = NetworkHash128.Parse(this.SpawnId);

            OregoNetworkUtils.SpawnObject(gameObject, hash128);
        }
示例#2
0
        public override GameObject Create()
        {
            //Create object:
            var gameObject = base.Create();

            //Make object online:
            var hash128 = NetworkHash128.Parse(this.SpawnId);

            OregoNetworkUtils.SpawnObject(gameObject, hash128);
            return(gameObject);
        }
示例#3
0
        /**
         * Util.
         */

        public virtual T GetClientComponent <T>(NetworkInstanceId id) where T : Component =>
        OregoNetworkUtils.FindClientComponent <T>(id);