Example #1
0
    //protected override void deepInit()
    new protected void Awake()
    {
        base.Awake();


        structure = GetComponent <_Structure3>();
    }
Example #2
0
        // 初期化・更新 ----------------------------

        public void init(StructureNearObjectBuilder builder, _Structure3 structure)
        {
            breakers = new StructureMeshBreakController3[(int)_StructurePart3.enType.length];

            brokenFlags.init(builder.parts.Length);


            var cs = builder.near.GetComponentsInChildren <MeshCollider>(true);

            foreach (var c in cs)
            {
                var i = getBrekerIndex(c);

                var breaker = new StructureMeshBreakController3(structure);

                breaker.init(c, builder.meshBuilder.hits[(int)i].triIndexToPartIdList, i);

                breakers[(int)i] = breaker;
            }
        }
Example #3
0
 public StructureMeshBreakController3(_Structure3 s)
 {
     structure = s;
 }