// Use this for initialization void Start() { island = GameObject.FindGameObjectWithTag("Island"); Debug.Assert(island != null, "no island found!", this); island_position = island.transform.position; end_point = island_position; speed = surf_speed; angleSelector = GetComponent <AnimationAngleSelector>(); angleSelector.DisableAll(); }
void Awake() { angleSelector = GetComponent <AnimationAngleSelector>(); }