コード例 #1
0
ファイル: DrawDebugLine.cs プロジェクト: DevZhav/The-Forest
        public override void OnUpdate()
        {
            Vector3 position  = ActionHelpers.GetPosition(this.fromObject, this.fromPosition);
            Vector3 position2 = ActionHelpers.GetPosition(this.toObject, this.toPosition);

            Debug.DrawLine(position, position2, this.color.Value);
        }
コード例 #2
0
ファイル: DrawDebugLine.cs プロジェクト: tanohmz/shapewars
        public override void OnUpdate()
        {
            Vector3 startPos = ActionHelpers.GetPosition(fromObject, fromPosition);
            Vector3 endPos   = ActionHelpers.GetPosition(toObject, toPosition);

            Debug.DrawLine(startPos, endPos, color.Value);
        }
コード例 #3
0
        public override void OnExit()
        {
            var startPos = ActionHelpers.GetPosition(fromObject, fromPosition);
            var endPos   = ActionHelpers.GetPosition(toObject, toPosition);

            Debug.DrawLine(startPos, endPos, color.Value, PlayMakerPrefs.DebugLinesDuration);
        }
コード例 #4
0
ファイル: DrawDebugRay.cs プロジェクト: K07H/The-Forest
        public override void OnUpdate()
        {
            Vector3 position = ActionHelpers.GetPosition(this.fromObject, this.fromPosition);

            Debug.DrawRay(position, this.direction.Value, this.color.Value);
        }
コード例 #5
0
ファイル: DrawDebugRay.cs プロジェクト: Anaryu/aetherion
        public override void OnUpdate()
        {
            var startPos = ActionHelpers.GetPosition(fromObject, fromPosition);

            Debug.DrawRay(startPos, direction.Value, color.Value);
        }
コード例 #6
0
        public override void OnExit()
        {
            var startPos = ActionHelpers.GetPosition(fromObject, fromPosition);

            Debug.DrawRay(startPos, direction.Value, color.Value, PlayMakerPrefs.DebugLinesDuration);
        }