Code cleanup.

This commit is contained in:
2023-02-17 18:11:04 +08:00
parent 9c08cbf0d2
commit f91aacd78e
3 changed files with 9 additions and 9 deletions

View File

@@ -144,8 +144,8 @@ namespace Cryville.Crtr.Event {
else if (s.CloneType == 17) Init();
}
public virtual void StartLogicalUpdate(ContainerState s) { }
public virtual void StartPreGraphicalUpdate(ContainerState s) { }
public virtual void StartGraphicalUpdate(ContainerState s) {
protected virtual void StartPreGraphicalUpdate(ContainerState s) { }
protected virtual void StartGraphicalUpdate(ContainerState s) {
if (gogroup) gogroup.gameObject.SetActive(true);
}
#endregion
@@ -175,8 +175,8 @@ namespace Cryville.Crtr.Event {
else if (gogroup && s.CloneType == 2) MatchDynamic(s, 1);
}
#region End methods
public virtual void EndGraphicalUpdate(ContainerState s) { }
public virtual void EndPreGraphicalUpdate(ContainerState s) { }
protected virtual void EndGraphicalUpdate(ContainerState s) { }
protected virtual void EndPreGraphicalUpdate(ContainerState s) { }
public virtual void EndLogicalUpdate(ContainerState s) { }
public virtual void EndPhysicalUpdate(ContainerState s) { }
public virtual void Dispose() {

View File

@@ -67,7 +67,7 @@ namespace Cryville.Crtr {
TransformAwake(s);
}
}
public override void StartGraphicalUpdate(ContainerState s) {
protected override void StartGraphicalUpdate(ContainerState s) {
base.StartGraphicalUpdate(s);
TransformAwake(s);
if (gogroup) {
@@ -127,7 +127,7 @@ namespace Cryville.Crtr {
else base.Update(s, ev);
}
public override void EndGraphicalUpdate(ContainerState s) {
protected override void EndGraphicalUpdate(ContainerState s) {
if (gogroup) {
foreach (var i in sgos) i.Seal();
}

View File

@@ -27,11 +27,11 @@ namespace Cryville.Crtr {
TransformAwake(s);
}
}
public override void StartPreGraphicalUpdate(ContainerState s) {
protected override void StartPreGraphicalUpdate(ContainerState s) {
base.StartPreGraphicalUpdate(s);
TransformAwake(s);
}
public override void StartGraphicalUpdate(ContainerState s) {
protected override void StartGraphicalUpdate(ContainerState s) {
base.StartGraphicalUpdate(s);
if (gogroup) {
TransformAwake(s);
@@ -105,7 +105,7 @@ namespace Cryville.Crtr {
spos = bpos - GetCurrentWorldPoint();
}
public override void EndGraphicalUpdate(ContainerState s) {
protected override void EndGraphicalUpdate(ContainerState s) {
base.EndGraphicalUpdate(s);
EndUpdatePosition(s);
var p = GetCurrentWorldPoint();