private void Start() { cooldownTimer = cooldownInterval; playerBody = GetComponent <Rigidbody>(); state = State.Normal; TRC = GetComponent <TimeChangeReflect>(); }
private void PlayerBButton(int index) { if (Input.GetAxis("BButton" + index) > 0.0f) { if (target != null) { TimeChangeReflect TCRT = target.gameObject.GetComponent <TimeChangeReflect>(); { TCRT.FastSth(speedTargetTime, speedTargetStrenght); } } } }
private void PlayerAButton(int index) { if (Input.GetAxis("AButton" + index) > 0.0f) { if (target != null) { Debug.Log(target.gameObject.name.ToString()); TimeChangeReflect TCRT = target.gameObject.GetComponent <TimeChangeReflect>(); { TCRT.SlowSth(slowTargetTime, slowTargetStrenght); } } } }