コード例 #1
0
        //private MonoBehaviour holder;

        public ActionCtroller(MonoBehaviour holder, PickUpController pickupCtrl)
        {
            //this.holder = holder;
            this.pickupCtrl = pickupCtrl;
            RegisterControllers();
            coroutine = holder.StartCoroutine(Update());
        }
コード例 #2
0
        private void RegisterControllers()
        {
            if (pickupCtrl == null)
            {
                pickupCtrl = new PickUpController(holder);
            }
            pickupCtrl.onPickup += (OnPickUpObj);

            controllerList.Add(new LinkCtrl());
            controllerList.Add(new PlaceCtrl());
            controllerList.Add(new ClickCtrl());
            controllerList.Add(new RopeCtrl());
            controllerList.Add(new RotateCtrl());
            controllerList.Add(new ConnectCtrl());
            controllerList.Add(new DragCtrl());

            foreach (var ctrl in controllerList)
            {
                ctrl.userErr = OnUserError;
            }
        }
コード例 #3
0
 public ChargeCtrl()
 {
     highter              = new ShaderHighLight();
     pickCtrl             = ActionSystem.Instence.pickupCtrl;
     pickCtrl.onPickStay += OnPickStay;
 }