private void Start() { autoJumper = GetComponent <AutoJumper_AI>(); rangeObserver = GetComponent <RangeObserver_AI>(); follower = GetComponent <Follower_AI>(); attacker = GetComponent <MeleeAttacker_AI>(); target = GetComponent <Target_AI>(); RegisterCallbacks(); }
private void OnTriggerEnter2D(Collider2D collision) { AutoJumper_AI autoJumper = collision.GetComponent <AutoJumper_AI>(); //TODO: This problably needs a revision to make sure the jumping works if (autoJumper) { autoJumper.MakeJump(); } }