コード例 #1
0
ファイル: SnapCollider.cs プロジェクト: cmkuo12/MoveToCode
 // Collision/outline // this needs to be moved to object mesh idk wait is this the snapcolliders?
 public MeshOutline GetMeshOutline()
 {
     if (outlineMaterial == null)
     {
         outlineMaterial = Resources.Load <Material>(ResourcePathConstants.OutlineSnapColliderMaterial) as Material;
     }
     if (meshOutline == null)
     {
         meshOutline = gameObject.AddComponent(typeof(MeshOutline)) as MeshOutline;
         meshOutline.OutlineMaterial = outlineMaterial;
     }
     return(meshOutline);
 }
コード例 #2
0
 private void Awake()
 {
     outline         = GetComponent <MeshOutline>();
     outline.enabled = false;
 }
コード例 #3
0
 void Awake()
 {
     meshOutline = GetComponent <MeshOutline>();
     particleSystemDummyObject = transform.GetChild(0).gameObject;
     LoggingManager.instance.AddLogColumn(trashcanCol, "");
 }