示例#1
0
        /// <inheritdoc/>
        public override void CopyProperties(ScenarioElement origin)
        {
            var originWaypoint = origin.GetComponent <ScenarioWaypoint>();

            if (originWaypoint == null)
            {
                return;
            }
            //Clear triggers object
            LinkedTrigger.Deinitalize();
            LinkedTrigger.Initialize();
            CopyProperties(originWaypoint, true);
        }
示例#2
0
        /// <inheritdoc/>
        public override void CopyProperties(ScenarioElement origin)
        {
            base.CopyProperties(origin);
            var originWaypoint = origin.GetComponent <ScenarioAgentWaypoint>();

            if (originWaypoint == null)
            {
                return;
            }

            //Clear triggers object
            LinkedTrigger.Deinitalize();
            LinkedTrigger.Initialize();
            WaitTime = originWaypoint.WaitTime;
            LinkedTrigger.CopyProperties(originWaypoint.LinkedTrigger);
        }