public override void CollectVerbs(Actor actor, PossessionType possession) { base.CollectVerbs(actor, possession); foreach (GameObject content in contents.GetAttached()) { content.CollectVerbs(actor, PossessionType.CONTENT); } }
public void Unload() { InputManager.instance.inputReceived -= player.ParseInput; player = null; // For now delete everything non root foreach (GameObject root in rootObjects) { Container containerRoot = root as Container; if (containerRoot != null) { ContainerAttachmentPoint contents = containerRoot.GetContents(); foreach (GameObject obj in contents.GetAttached()) { contents.Remove(obj); } } } }