public void AddObject(GameObject obj) { this.allObjects.Add(obj); if (obj is Skier) { AddSkier(obj); } }
private void AddSkier(GameObject obj) { this.skier = obj as Skier; }