Exemplo n.º 1
0
    void getAbilities()
    {
        try
        { basicMoveMent = this.GetComponentInChildren <IBasicMoveMent>();
          basicMoveMent.enableAbility(this);
          basicMoveMent.activate(); }
        catch
        {
        }
        try
        {
            rotateArm = this.GetComponentInChildren <IRotateArm>();
            rotateArm.enableAbility(this);
            rotateArm.deactivate();
        }
        catch
        {
        }

        try
        {
            grapple = armController.GetComponentInChildren <IGrapple>();
            grapple.enableAbility(this);
        }
        catch
        {
        }
        try
        {
            landHit = this.GetComponentInChildren <ILandHit>();
        }
        catch
        {
        }
        try
        {
            slimeArm = armController.GetComponent <ISlimeArm>();
            slimeArm.enableAbility(this);
            Debug.Log(slimeArm);
        }
        catch
        {
            Debug.LogError("No SlimeArm");
        }
        try
        {
            teleporte = this.GetComponentInChildren <ITeleporte>();
        }
        catch
        {
        }

        try
        {
            chargeArm = this.GetComponentInChildren <IChargeArm>();
        }
        catch
        {
        }
    }
Exemplo n.º 2
0
        internal Truck(string truckName, IGrapple grapple)
        {
            Log.Write($"Setting Up the Truck {truckName}");

            _truckName = truckName;
            _grapple   = grapple;
            Init();
        }
Exemplo n.º 3
0
        internal Truck(string truckName, IGrapple grapple)
        {
            Log.Write($"Setting Up the Truck {truckName}");

            _truckName = truckName;
            _grapple   = grapple;
            CreateDeliveryFolder(TruckPosition);
        }
Exemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="truckName"></param>
        public Truck(string truckName, SerializationOption serializationOption = SerializationOption.Binary)
        {
            _truckName = truckName;
            if (serializationOption == SerializationOption.Binary)
            {
                _grapple = new BinaryGrapple(new DefaultSerializer());
            }
            else
            {
                _grapple = new BinaryGrapple(new JsonSerializer());
            }

            Init();
        }