/* * 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; } }
public void SetChargeMode(_ChargeMode mode){ chargeMode=mode; }
public static void SetChargeMode(_ChargeMode mode){ instance.chargeMode=mode; }
public static void SetChargeMode(_ChargeMode mode) { instance.chargeMode = mode; }
public void SetChargeMode(_ChargeMode mode) { chargeMode = mode; }