Beispiel #1
0
    public override void Start()
    {
        // Calling parent Start function
        base.Start();

        // Reference to script
        movingByUserScript = gameObject.GetComponent <MovingByUser>();
    }
Beispiel #2
0
 void Start()
 {
     // Reference to script
     movingByUserScript = gameObject.GetComponent <MovingByUser>();
 }