コード例 #1
0
    private void SendHitBoxEvent()
    {
        EventData data = new EventData();

        data.AddString("AttackName", stateName);
        //data.AddMonoBehaviour("Entity", owner);
        data.AddInt("ID", owner.SessionID);

        //Debug.Log(owner.entityName + " " + owner.SessionID + " is sending an animation event");

        EventGrid.EventManager.SendEvent(Constants.GameEvent.AnimationEvent, data);
    }
コード例 #2
0
    public void Attack(AnimationEvent animEvent)
    {
        //Debug.Log("Sending Attack");

        EventData data = new EventData();

        data.AddString("AttackName", animEvent.stringParameter);
        //data.AddMonoBehaviour("Entity", owner);
        data.AddInt("ID", owner.SessionID);

        //Debug.Log(owner.entityName + " " + owner.SessionID + " is sending an animation event");

        EventGrid.EventManager.SendEvent(Constants.GameEvent.AnimationEvent, data);
    }