public override void Awake() { base.Awake(); m_myTransform = transform; m_maxHp = 100; m_currHp = 100; m_shaking = gameObject.AddComponent <Shaking>(); m_shaking.Init(m_model); m_shader = gameObject.AddComponent <VisualShader>(); m_shader.SetOwner(m_model.transform); m_material = m_model.GetComponent <Renderer>().material; //랜덤하게 한장 가져와서 머티리얼 설정 m_hide = new DelegateEndHide(EndHide); //죽었을때 하이드 호출 }
public void Hide(DelegateEndHide delegateHide) { m_delegateHide = delegateHide; m_alpha = 1; m_activeHide = true; }