コード例 #1
0
    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>();
    }
コード例 #2
0
	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>();
	}