private void Start() { ComponentActivator.Instance.Register(this, new Dictionary<GameEvent, bool> { { GameEvent.Jump, true }, { GameEvent.Land, false }, { GameEvent.StartEdgeClimbing, false }, { GameEvent.StartVineClimbing, false } }); climbOverEdge = GetComponent<ClimbOverEdge>(); if (climbOverEdge == null) Debug.LogError("climb over egde not found"); cCollider =GetComponent<CapsuleCollider>(); }
private void Start () { if (GameManager.componentActivatorOn) { ComponentActivator.Instance.Register (this, new Dictionary<GameEvent, bool> { { GameEvent.Jump, true }, { GameEvent.StartEdgeClimbing, false }, { GameEvent.StartWallClimbing, false }, { GameEvent.StartVineClimbing, false } }); } cCollider = GetComponent<CapsuleCollider>(); climbOverEdge = GetComponent<ClimbOverEdge>(); charState = GetComponent<RomanCharState>(); }