Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     name             = transform.parent.name;
     ballDur          = GetComponent <BallDurability>();
     ballCollision    = GetComponent <BallCollision>();
     nameplateDisplay = GetComponent <NameplateDisplay>();
 }
Example #2
0
    private void Start()
    {
        rb          = GetComponent <Rigidbody>();
        ballDur     = GetComponent <BallDurability>();
        ballPhysics = GetComponent <BallPhysics>();
        nameplate   = GetComponent <NameplateDisplay>();

        //Initialise ballConfig values
    }