public virtual void PoleChange(PoleObject poleObject) { if (!m_spriteRenderer) { m_spriteRenderer = GetComponent <SpriteRenderer>(); } }
public void PoleChange(PoleObject poleObject) { if (!m_meshRenderer) { m_meshRenderer = GetComponent <MeshRenderer>(); } MaterialChange(m_poleMaterial.m_Materials, poleObject.m_pole); }
private Vector2 SwapLerp(GameObject flyingobj, PoleObject target, float t) { Vector2 target_pos = flyingobj.transform.position; if (target) { target_pos = target.transform.position; } return(Vector2.Lerp(flyingobj.transform.position, target_pos, t)); }
public GameObject SpawnSwapEffect(PoleObject obj) { if (!obj) { return(null); } GameObject swapeffect = obj.GetCreateCircleEffect(); swapeffect.transform.position = obj.transform.position; return(swapeffect); }
private void PoleSwap(PoleObject player, PoleObject other) { PoleObject.Pole tmp = other.m_pole; other.PoleChange(player.m_pole); player.PoleChange(tmp); }
public void SetSwapObject(PoleObject player, PoleObject target) { m_player = player; m_target = target; }
public void Gizomos(PoleObject poleObject) { SetActiveEffect(poleObject.m_pole); }
public void PoleChange(PoleObject poleObject) { SetActiveEffect(poleObject.m_pole); m_changeEffect.Play(); }
//プレイヤーをセットする同時にpoleもセットする public void SetPlayer(PoleObject actor) { m_player = actor; }
public override void PoleChange(PoleObject poleObject) { base.PoleChange(poleObject); SpriteChange(m_sprites, poleObject.m_pole); }
public override void PoleChange(PoleObject poleObject) { base.PoleChange(poleObject); base.SpriteChange(m_poleSprites.GetPoleSprites(), poleObject.m_pole); }
public void Gizomos(PoleObject obj) { m_effect.Gizomos(obj); }
public void SetPoleObject(PoleObject obj) { m_poleObject = obj; PoleChange(); }