コード例 #1
0
        private PowerLine CreatePowerLine()
        {
            var       go = Instantiate(_powerLinePrefab);
            PowerLine pl = go.GetComponent <PowerLine>();

            pl.Initialize(_owner.transform, this.transform);

            return(pl);
        }
コード例 #2
0
 public void SetOwner(PlayerActions player)
 {
     _owner     = player;
     _powerLine = CreatePowerLine();
 }