Esempio n. 1
0
    // 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();
    }
Esempio n. 2
0
 void Awake()
 {
     angleSelector = GetComponent <AnimationAngleSelector>();
 }