Exemple #1
0
 void Awake()
 {
     rb      = this.GetComponent <Rigidbody2D>();
     col     = this.GetComponent <Collider2D>();
     bounce  = this.GetComponentInChildren <BounceVertical>();
     glow    = this.GetComponent <BallGlow>();
     hotness = this.GetComponent <BallHotness>();
     source  = GetComponent <BallSource>();
 }
    void Awake()
    {
        tr     = this.GetComponentInChildren <TrailRenderer>();
        rigid  = this.GetComponent <Rigidbody2D>();
        source = this.GetComponent <BallSource>();

        initialTrailWidth = tr.startWidth;
        initialTrailTime  = tr.time;
    }
 public void SetBallSource(BallSource ballSourceIn)
 {
     ballSource = ballSourceIn;
 }
 void Awake()
 {
     rigid      = this.GetComponent <Rigidbody2D>();
     ballSource = this.GetComponent <BallSource>();
     hotness    = GetComponent <BallHotness>();
 }
 void Start()
 {
     hotness = GetComponent <BallHotness>();
     source  = GetComponent <BallSource>();
 }