This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
netcode.io reference implementation | |
Copyright © 2017, The Network Protocol Company, Inc. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void CopyComponentInternal(Component original, Component destination) | |
{ | |
if (original == null || destination == null) | |
{ | |
//Debug.LogError("Null Objects in copy"); | |
return; | |
} | |
Type type = original.GetType(); | |
//if (type != other.GetType()) return null; // type mis-match |