private PowerLine CreatePowerLine() { var go = Instantiate(_powerLinePrefab); PowerLine pl = go.GetComponent <PowerLine>(); pl.Initialize(_owner.transform, this.transform); return(pl); }
public void SetOwner(PlayerActions player) { _owner = player; _powerLine = CreatePowerLine(); }