public override void HandleEvent(GEvent e)
    {
        //Call EmbarkerController.EmbarkEventHelper(string TargetGuid, string EmbarkerGuid);
        String SmallerUnitGuid = (string)e.Arguments [0];
        String SuperUnitGuid   = (string)e.Arguments [1];

        EmbarkerController smaller = GuidList.GetGameObject(SmallerUnitGuid).GetComponent <EmbarkerController>();

        smaller.EmbarkEventHelper(SuperUnitGuid, SmallerUnitGuid);
    }
Exemplo n.º 2
0
    public override void HandleEvent(GEvent e)
    {
        String SmallerUnitGuid = Convert.ToString(e.Arguments [0]);
        //Debug.Log ("YO IM HERE: " + SmallerUnitGuid);
        Point              p       = (Point)e.Arguments [1];
        Vector3            pos     = new Vector3(p.x, p.y, p.z);
        string             parent  = Convert.ToString(e.Arguments [2]);
        EmbarkerController smaller = (EmbarkerController)GuidList.GetGameObject(SmallerUnitGuid).GetComponent <EmbarkerController>();

        smaller.LaunchEventHelper(SmallerUnitGuid, pos, parent);
    }