Ejemplo n.º 1
0
    // 100 : x = 0.48 : y
    // 0.48x = 100y;
    protected override void OnTriggerEnter(Collider other)
    {
        Debug.Log("OnCollisionEnter Arrow");
        GameObject ob = other.gameObject;

        if (ob.tag == "Arrow")
        {
            CurrentArrow            = ob;
            _rightDeviceInteraction = DeviceRepository.RightDeviceInteraction;
            TriggerEventSet(true);
        }
    }
 protected override void Start()
 {
     _leftController = DeviceRepository.LeftDeviceInteraction;
     _rigidbody      = GetCachedComponent <Rigidbody>();
     ControllSetting(true);
 }
Ejemplo n.º 3
0
    protected override void Start()
    {
        _device = GetCachedComponent <DeviceInteraction>();

        _volumetricLineBehavior = VolumetricLine.GetComponent <VolumetricLineBehavior>();
    }