protected override void OnCreate() { base.OnCreate(); group = GetEntityQuery( ComponentType.ReadOnly <PlayerInfo.Component>(), ComponentType.ReadOnly <Transform>() ); interClient = IntervalCheckerInitializer.InitializedChecker(this.IntervalTime, setChecked: true); action = Query; }
protected override void OnCreate() { base.OnCreate(); rootObject = new GameObject("TowerObjects"); groupTower = GetEntityQuery( ComponentType.ReadOnly <SymbolicTower.Component>(), ComponentType.ReadOnly <Position.Component>() ); groupPlayer = GetEntityQuery( ComponentType.ReadOnly <PlayerInfo.Component>(), ComponentType.ReadOnly <Transform>() ); towerAction = TowerQuery; playerAction = PlayerQuery; }