// Use this for initialization void Start() { startPos = transform.position; speedSave = speed; //子オブジェクトの取得 rayPointWork = transform.Find("RayPointWork").gameObject; rayPointStepJump = transform.Find("RayPointStepJump").gameObject; rayPointHeight = transform.Find("RayPointHeight").gameObject; rayPointNeedle = transform.Find("RayPointNeedle").gameObject; //コンポーネント取得 rigi2D = GetComponent <Rigidbody2D>(); box2D = GetComponent <BoxCollider2D>(); _yPlayerManger = GetComponent <yPlayerManager>(); }
// Use this for initialization void Start() { _yPlayerManager = GameObject.Find("player").GetComponent <yPlayerManager>(); }