YuminekoGame
2/9/2019 - 9:21 AM

SetComponent

ParameterContainerにComponentをセットしたい場合

using System.Collections;
using System.Collections.Generic;
using Arbor;
using UnityEngine;
 
public class Bullet : MonoBehaviour {
  [SerializeField]
  [ClassExtends (typeof (Rigidbody))]
  private ComponentParameterReference ref_rigid;
  
  void Start(){
    ref_rigid.parameter.value = Player.GetComponent<Rigidbody>();
  }
 
  void FixedUpdate () {
    
  }
}