// Use this for initialization void Start() { shotController = GetComponent <IShotController>(); moveController = GetComponent <IMoveController>(); aimController = GetComponent <IAimController>(); ballController = ballObject.GetComponent <Projectiler>(); rb = GetComponent <Rigidbody>(); AudioSource[] clips = GetComponents <AudioSource>(); runSound = clips[0]; shotSound = clips[1]; cStateMovePrev = new Vector2(); }
void Awake() { ballController = ball.GetComponent <Projectiler>(); rb = ball.GetComponent <Rigidbody>(); }