20 lines
263 B
Go
20 lines
263 B
Go
package node
|
|
|
|
// 精灵切换前
|
|
func (this *Node) PreSwitch() func() {
|
|
return this.OnSwitch()
|
|
|
|
}
|
|
|
|
// 精灵切换时
|
|
func (this *Node) OnSwitch() func() {
|
|
return this.AfterSwitch()
|
|
|
|
}
|
|
|
|
// 精灵切换后
|
|
func (this *Node) AfterSwitch() func() {
|
|
return nil
|
|
|
|
}
|