Exemplo n.º 1
0
 void Awake()
 {
     newBall           = Time.time + 3;
     ball              = GetComponentInChildren <gameBalls>();
     ball.acceleration = Vector3.zero;
     initialPosition   = ball.transform.localPosition;
 }
Exemplo n.º 2
0
    void Start()
    {
        scored   = 0;
        notInBin = true;
        self     = GetComponent <Renderer>().bounds;
        ball     = GetComponent <gameBalls>();

        Vector3 a = new Vector3(1, 2, 0);
        Vector3 b = new Vector3(-2, 3, 5);

        Vector2 c = new Vector2(0, -4);
        Vector2 d = new Vector2(-4, 1);
    }
Exemplo n.º 3
0
 void Start()
 {
     foreach (Renderer rend in objects)
     {
         if (rend.tag != "invisableTarget")
         {
             rend.enabled = true;
         }
         else
         {
             rend.enabled = false;
         }
     }
     score = 0;
     self  = GetComponent <Renderer>().bounds;
     ball  = GetComponent <gameBalls>();
 }