You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
508 B
21 lines
508 B
3 years ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class CloneBlockLine : CloneDashedLine
|
||
|
{
|
||
|
|
||
|
public override void Awake()
|
||
|
{
|
||
|
cloneObjType = CloneObjType.BlockLine;
|
||
|
ResourcesName = "Prefab/Tool/BlockItem";
|
||
|
parentResourcesName = "Prefab/Tool/BlockLineParent";
|
||
|
base.Awake();
|
||
|
}
|
||
|
protected override void SetDirect(GameObject cloneObj)
|
||
|
{
|
||
|
cloneObj.transform.right = ((prePos - curPos)).normalized;
|
||
|
}
|
||
|
|
||
|
}
|