/*
     * all the _ChargeMode available in TapDetector
     *      Once,
     *      Clamp,
     *      Loop,
     *      PingPong,
     */

    // Use this for initialization
    void Start()
    {
        _ChargeMode chargeMode = TapDetector.GetChargeMode();

        if (chargeMode == _ChargeMode.Once)
        {
            type = 0;
        }
        else if (chargeMode == _ChargeMode.Clamp)
        {
            type = 1;
        }
        else if (chargeMode == _ChargeMode.Loop)
        {
            type = 2;
        }
        else if (chargeMode == _ChargeMode.PingPong)
        {
            type = 3;
        }
    }
示例#2
0
	public void SetChargeMode(_ChargeMode mode){
		chargeMode=mode;
	}
示例#3
0
	public static void SetChargeMode(_ChargeMode mode){ instance.chargeMode=mode; }
示例#4
0
 public static void SetChargeMode(_ChargeMode mode)
 {
     instance.chargeMode = mode;
 }
示例#5
0
 public void SetChargeMode(_ChargeMode mode)
 {
     chargeMode = mode;
 }