Beispiel #1
0
        void Update()
        {
            if (Input.GetMouseButtonUp(0))
            {
                controller.OptionGhostReleased(optionType, unit, weapon);
                Destroy(gameObject);
            }

            transform.position = (Vector2)mainCamera.ScreenToWorldPoint(Input.mousePosition);
        }
Beispiel #2
0
 public void RightClickedAsButton()
 {
     wsController.OptionGhostReleased(UnitOrWeapon.Weapon, UnitBaseType.Simple, WeaponType.None);
 }