void INotifyOwnerChanged.OnOwnerChanged(Actor self, Player oldOwner, Player newOwner) { playerPower = newOwner.PlayerActor.Trait <PowerManager>(); Update(self); }
public GrantConditionOnPowerState(Actor self, GrantConditionOnPowerStateInfo info) : base(info) { playerPower = self.Owner.PlayerActor.Trait <PowerManager>(); }