protected override void OnAwake() { if(pc == null){ Debug.LogError("No" + pc.getName() + "attached to this object"); } if(aimer == null){ Debug.LogError("No Aimer attached to this object"); } localMover = GetComponent<Mover>(); localJumper = GetComponent<Jumper>(); //onewaybypass = transform.FindChild("OneWayPlatformCollider").GetComponent<OneWayBypass>(); animator = GetComponent<Animator>(); itemController = GetComponentInChildren<ItemController>(); interactFinder = GetComponentInChildren<InteractableFinder>(); inventory = GetComponent<PlayerInventory>(); alignment = AlignmentType.FRIENDLY; }
protected override void OnAwake() { if (pc == null) { Debug.LogError("No" + pc.getName() + "attached to this object"); } if (aimer == null) { Debug.LogError("No Aimer attached to this object"); } localMover = GetComponent <Mover>(); localJumper = GetComponent <Jumper>(); //onewaybypass = transform.FindChild("OneWayPlatformCollider").GetComponent<OneWayBypass>(); animator = GetComponent <Animator>(); itemController = GetComponentInChildren <ItemController>(); interactFinder = GetComponentInChildren <InteractableFinder>(); inventory = GetComponent <PlayerInventory>(); alignment = AlignmentType.FRIENDLY; }