Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     shoveTime    = Time.time;
     tapStartTime = Time.time;
     controller   = GetComponent <CharacterController>();
     pushbar      = Buggy.GetComponentInChildren <Pushbar>();
 }
Ejemplo n.º 2
0
    // 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);
        }
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     cam           = Camera.main;
     targetPushbar = TargetBuggy.pushbar;
 }
Ejemplo n.º 4
0
 public void SetPushbar(Pushbar _pushbar)
 {
     pushbar = _pushbar;
 }