コード例 #1
0
ファイル: Checkpoint.cs プロジェクト: jreese/gammadraconis
 /// <summary>
 /// Clone a checkpoint object.
 /// </summary>
 /// <param name="gameObject">The object to clone.</param>
 /// <returns>The cloned object.</returns>
 public static Checkpoint cloneObject(GameObject gameObject)
 {
     Checkpoint checkpoint = new Checkpoint();
     checkpoint.position = gameObject.position;
     checkpoint.models = gameObject.models;
     checkpoint.size = gameObject.size;
     return checkpoint;
 }
コード例 #2
0
ファイル: Checkpoint.cs プロジェクト: jreese/gammadraconis
        /// <summary>
        /// Clone a checkpoint object.
        /// </summary>
        /// <returns>The cloned object.</returns>
        public Checkpoint clone()
        {
            Checkpoint go = new Checkpoint();
            go.size = size;
            go.racePosition = racePosition;
            go.position = position;
            go.models = models;

            return go;
        }