コード例 #1
0
        //recalculate path points
        void Awake()
        {
            WaypointManager.AddPath(gameObject);

            //do not recalculate automatically with runtime created paths
            if (bPoints == null || bPoints.Count == 0)
            {
                return;
            }

            CalculatePath();
        }
コード例 #2
0
ファイル: PathManager.cs プロジェクト: Guendeli/SG-App
 //auto-add to WaypointManager
 void Awake()
 {
     WaypointManager.AddPath(gameObject);
 }