Hi,
I am not sure what you are trying to achieve. Can you explain what you want to do?
If you check the Mecanim package on the
wiki and
Ecosystemyou'll have plenty of custom actions accessing the Animator Component, so you can inspire from this or actually use the actions already made if they suit your needs ( It covers pretty much everything you need anyway)
Bye,
Jean