// Use this for initialization void Start() { shoveTime = Time.time; tapStartTime = Time.time; controller = GetComponent <CharacterController>(); pushbar = Buggy.GetComponentInChildren <Pushbar>(); }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody>(); pushbar = buggy.GetComponentInChildren <Pushbar>(); speed = 0; tapStartTime = Time.time; RaycastHit hit; if (Physics.Raycast(transform.position, Vector3.down, out hit, 3)) { incline = Quaternion.AngleAxis(90, transform.right) * hit.normal; Debug.DrawRay(transform.position, incline * 5, Color.red); } }
// Use this for initialization void Start() { cam = Camera.main; targetPushbar = TargetBuggy.pushbar; }
public void SetPushbar(Pushbar _pushbar) { pushbar = _pushbar; }