// Start is called before the first frame update void Start() { Debug.Assert(ParentObject != null, "Parent Object is null", ParentObject); Debug.Assert(ChildObject != null, "Child Object is null", ChildObject); Debug.Assert(UI != null, "Interact Label is null", UI); m_CurrentType = StartingChar; HandleCharacter(); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Alpha1)) { m_CurrentType = EnumCharTypes.Child; HandleCharacter(); } else if (Input.GetKeyDown(KeyCode.Alpha2)) { m_CurrentType = EnumCharTypes.Parent; HandleCharacter(); } HandleInteractions(); }