the error is:
ballmovement.balldirection is inaccessible due to its protection level
the member ballmovement.balldirection cannot be used as method or delegate
and here the code:
using UnityEngine;
using System.Collections;
public class ballmovement : MonoBehaviour {
public Vector3 balldirection = new Vector3(0, 0, 0);
public float randomX = Random.Range (0.2F, 1F);
public float randomY = Random.Range (0.2F, 1F);
// Use this for initialization
void Start () {
balldirection = balldirection (randomX, randomY, 0);
}
// Update is called once per frame
void Update () {
transform.Translate (balldirection);
}
}